Class: CcipDirectoryAndConfigurationRestApiV1::EnrichFeeTokens
- Inherits:
-
Object
- Object
- CcipDirectoryAndConfigurationRestApiV1::EnrichFeeTokens
- Defined in:
- lib/ccip_directory_and_configuration_rest_api_v1/models/enrich_fee_tokens.rb
Overview
enrichFeeTokens.
Constant Summary collapse
- ENRICH_FEE_TOKENS =
[ # TODO: Write general description for ENUM_TRUE ENUM_TRUE = 'true'.freeze, # TODO: Write general description for ENUM_FALSE ENUM_FALSE = 'false'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ENUM_TRUE) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ccip_directory_and_configuration_rest_api_v1/models/enrich_fee_tokens.rb', line 23 def self.from_value(value, default_value = ENUM_TRUE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'enum_true' then ENUM_TRUE when 'enum_false' then ENUM_FALSE else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/ccip_directory_and_configuration_rest_api_v1/models/enrich_fee_tokens.rb', line 17 def self.validate(value) return false if value.nil? ENRICH_FEE_TOKENS.include?(value) end |