Class: Freeclimb::CallEndedReason
- Inherits:
-
Object
- Object
- Freeclimb::CallEndedReason
- Defined in:
- lib/freeclimb/models/call_ended_reason.rb
Constant Summary collapse
- BUSY =
"busy".freeze
- FAILED =
"failed".freeze
- NO_ANSWER =
"noAnswer".freeze
- CALL_CANCELED =
"callCanceled".freeze
- FAR_END_HANGUP =
"farEndHangup".freeze
- APP_HANGUP =
"appHangup".freeze
- APP_REJECT =
"appReject".freeze
- APP_NO_PERCL =
"appNoPercl".freeze
- APP_INVALID_PERCL =
"appInvalidPercl".freeze
- CONFERENCE_TERMINATED =
"conferenceTerminated".freeze
- CONFERENCE_EMPTIED =
"conferenceEmptied".freeze
- REMOVED_FROM_CONFERENCE =
"removedFromConference".freeze
- MACHINE_DETECTED =
"machineDetected".freeze
- WEBHOOK_FAILED =
"webhookFailed".freeze
- WEBHOOK_INVALID_RESPONSE =
"webhookInvalidResponse".freeze
- VOICE_DISABLED =
"voiceDisabled".freeze
- CONFIG_ERROR_NO_APPLICATION =
"configErrorNoApplication".freeze
- CONFIG_ERROR_NO_VOICE_URL =
"configErrorNoVoiceUrl".freeze
- MAX_REDIRECTS_ERROR =
"maxRedirectsError".freeze
- PERCL_PROCESSING_ERROR =
"perclProcessingError".freeze
- INTERNAL_ERROR =
"internalError".freeze
- GRPC_HANGUP =
"grpcHangup".freeze
- MAX_DURATION =
"maxDuration".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
43 44 45 |
# File 'lib/freeclimb/models/call_ended_reason.rb', line 43 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
50 51 52 53 54 |
# File 'lib/freeclimb/models/call_ended_reason.rb', line 50 def build_from_hash(value) constantValues = CallEndedReason.constants.select { |c| CallEndedReason.const_get(c) == value } raise "Invalid ENUM value #{value} for class #CallEndedReason" if constantValues.empty? value end |