Class: MergeTicketingClient::ConditionTypeEnum
- Inherits:
-
Object
- Object
- MergeTicketingClient::ConditionTypeEnum
- Defined in:
- lib/merge_ticketing_client/models/condition_type_enum.rb
Constant Summary collapse
- BOOLEAN =
"BOOLEAN".freeze
- DATE =
"DATE".freeze
- DATE_TIME =
"DATE_TIME".freeze
- INTEGER =
"INTEGER".freeze
- FLOAT =
"FLOAT".freeze
- STRING =
"STRING".freeze
- LIST_OF_STRINGS =
"LIST_OF_STRINGS".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.
29 30 31 |
# File 'lib/merge_ticketing_client/models/condition_type_enum.rb', line 29 def raw_value @raw_value end |
#value ⇒ Object
Returns the value of attribute value.
28 29 30 |
# File 'lib/merge_ticketing_client/models/condition_type_enum.rb', line 28 def value @value end |
Class Method Details
.build_from_hash(value) ⇒ Object
45 46 47 |
# File 'lib/merge_ticketing_client/models/condition_type_enum.rb', line 45 def self.build_from_hash(value) ConditionTypeEnum.new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/merge_ticketing_client/models/condition_type_enum.rb', line 34 def build_from_hash(value) @raw_value = value if ["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS", ].include? value @value = value else @value = MERGE_NONSTANDARD_VALUE end self end |