class OpsgenieSdk::NotifyTime

Constants

JUST_BEFORE
N15_MINUTES_AGO
N1_DAY_AGO
N1_HOUR_AGO

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/opsgenie_sdk/models/notify_time.rb, line 26
def build_from_hash(value)
  constantValues = NotifyTime.constants.select { |c| NotifyTime::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #NotifyTime" if constantValues.empty?
  value
end