Class: OpenapiClient::AncillaryServiceEndorsement
- Inherits:
-
Object
- Object
- OpenapiClient::AncillaryServiceEndorsement
- Defined in:
- lib/openapi_client/models/ancillary_service_endorsement.rb
Constant Summary collapse
- NONE =
"none".freeze
- RETURN_SERVICE_REQUESTED =
"return_service_requested".freeze
- FORWARDING_SERVICE_REQUESTED =
"forwarding_service_requested".freeze
- ADDRESS_SERVICE_REQUESTED =
"address_service_requested".freeze
- CHANGE_SERVICE_REQUESTED =
"change_service_requested".freeze
- LEAVE_IF_NO_RESPONSE =
"leave_if_no_response".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
27 28 29 |
# File 'lib/openapi_client/models/ancillary_service_endorsement.rb', line 27 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
34 35 36 37 38 |
# File 'lib/openapi_client/models/ancillary_service_endorsement.rb', line 34 def build_from_hash(value) constantValues = AncillaryServiceEndorsement.constants.select { |c| AncillaryServiceEndorsement::const_get(c) == value } raise "Invalid ENUM value #{value} for class #AncillaryServiceEndorsement" if constantValues.empty? value end |