Class: MergeTicketingClient::EncodingEnum
- Inherits:
-
Object
- Object
- MergeTicketingClient::EncodingEnum
- Defined in:
- lib/merge_ticketing_client/models/encoding_enum.rb
Constant Summary collapse
- RAW =
"RAW".freeze
- BASE64 =
"BASE64".freeze
- GZIP_BASE64 =
"GZIP_BASE64".freeze
- MERGE_NONSTANDARD_VALUE =
"MERGE_NONSTANDARD_VALUE".freeze
Instance Attribute Summary collapse
-
#raw_value ⇒ Object
Returns the value of attribute raw_value.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Attribute Details
#raw_value ⇒ Object
Returns the value of attribute raw_value.
25 26 27 |
# File 'lib/merge_ticketing_client/models/encoding_enum.rb', line 25 def raw_value @raw_value end |
#value ⇒ Object
Returns the value of attribute value.
24 25 26 |
# File 'lib/merge_ticketing_client/models/encoding_enum.rb', line 24 def value @value end |
Class Method Details
.build_from_hash(value) ⇒ Object
41 42 43 |
# File 'lib/merge_ticketing_client/models/encoding_enum.rb', line 41 def self.build_from_hash(value) EncodingEnum.new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/merge_ticketing_client/models/encoding_enum.rb', line 30 def build_from_hash(value) @raw_value = value if ["RAW", "BASE64", "GZIP_BASE64", ].include? value @value = value else @value = MERGE_NONSTANDARD_VALUE end self end |