Class: UnitOpenapiRubySdk::ThreadIndividualTransactionVolume
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::ThreadIndividualTransactionVolume
- Defined in:
- lib/unit_openapi_ruby_sdk/models/thread_individual_transaction_volume.rb
Constant Summary collapse
- LESS_THAN1_K =
"LessThan1K".freeze
- BETWEEN1_K_AND5_K =
"Between1KAnd5K".freeze
- BETWEEN5_K_AND15_K =
"Between5KAnd15K".freeze
- BETWEEN15_K_AND30_K =
"Between15KAnd30K".freeze
- BETWEEN30_K_AND60_K =
"Between30KAnd60K".freeze
- GREATER_THAN60_K =
"GreaterThan60K".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.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
.all_vars ⇒ Object
25 26 27 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_individual_transaction_volume.rb', line 25 def self.all_vars @all_vars ||= [LESS_THAN1_K, BETWEEN1_K_AND5_K, BETWEEN5_K_AND15_K, BETWEEN15_K_AND30_K, BETWEEN30_K_AND60_K, GREATER_THAN60_K].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_individual_transaction_volume.rb', line 32 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
39 40 41 42 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_individual_transaction_volume.rb', line 39 def build_from_hash(value) return value if ThreadIndividualTransactionVolume.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ThreadIndividualTransactionVolume" end |