Class: Freeclimb::RequestType
- Inherits:
-
Object
- Object
- Freeclimb::RequestType
- Defined in:
- lib/freeclimb/models/request_type.rb
Constant Summary collapse
- INBOUND_CALL =
"inboundCall".freeze
- RECORD =
"record".freeze
- GET_DIGITS =
"getDigits".freeze
- GET_SPEECH =
"getSpeech".freeze
- REDIRECT =
"redirect".freeze
- PAUSE =
"pause".freeze
- OUT_DIAL_START =
"outDialStart".freeze
- OUT_DIAL_CONNECT =
"outDialConnect".freeze
- OUT_DIAL_API_CONNECT =
"outDialApiConnect".freeze
- MACHINE_DETECTED =
"machineDetected".freeze
- DEQUEUE =
"dequeue".freeze
- QUEUE_WAIT =
"queueWait".freeze
- ADD_TO_QUEUE_NOTIFICATION =
"addToQueueNotification".freeze
- REMOVE_FROM_QUEUE_NOTIFICATION =
"removeFromQueueNotification".freeze
- CALL_STATUS =
"callStatus".freeze
- CREATE_CONFERENCE =
"createConference".freeze
- CONFERENCE_STATUS =
"conferenceStatus".freeze
- LEAVE_CONFERENCE =
"leaveConference".freeze
- ADD_TO_CONFERENCE_NOTIFICATION =
"addToConferenceNotification".freeze
- CONFERENCE_RECORDING_STATUS =
"conferenceRecordingStatus".freeze
- CONFERENCE_CALL_CONTROL =
"conferenceCallControl".freeze
- MESSAGE_DELIVERY =
"messageDelivery".freeze
- MESSAGE_STATUS =
"messageStatus".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
45 46 47 |
# File 'lib/freeclimb/models/request_type.rb', line 45 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
52 53 54 55 56 |
# File 'lib/freeclimb/models/request_type.rb', line 52 def build_from_hash(value) constantValues = RequestType.constants.select { |c| RequestType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #RequestType" if constantValues.empty? value end |