Class: OpsgenieSdk::NotificationActionType

Inherits:
Object
  • Object
show all
Defined in:
lib/opsgenie_sdk/models/notification_action_type.rb

Constant Summary collapse

CREATE_ALERT =
'create-alert'.freeze
ACKNOWLEDGED_ALERT =
'acknowledged-alert'.freeze
CLOSED_ALERT =
'closed-alert'.freeze
RENOTIFIED_ALERT =
'renotified-alert'.freeze
ASSIGNED_ALERT =
'assigned-alert'.freeze
ADD_NOTE =
'add-note'.freeze
SCHEDULE_START =
'schedule-start'.freeze
SCHEDULE_END =
'schedule-end'.freeze
INCOMING_CALL_ROUTING =
'incoming-call-routing'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



31
32
33
34
35
# File 'lib/opsgenie_sdk/models/notification_action_type.rb', line 31

def build_from_hash(value)
  constantValues = NotificationActionType.constants.select { |c| NotificationActionType::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #NotificationActionType" if constantValues.empty?
  value
end