Class: PinterestSdkClient::ChangeHistoryDataType
- Inherits:
-
Object
- Object
- PinterestSdkClient::ChangeHistoryDataType
- Defined in:
- lib/pinterest_sdk/models/change_history_data_type.rb
Constant Summary collapse
- STRING =
"STRING".freeze
- NUMERIC =
"NUMERIC".freeze
- MICROCURRENCY =
"MICROCURRENCY".freeze
- DATE =
"DATE".freeze
- BOOL =
"BOOL".freeze
- GENDER_LIST =
"GENDER_LIST".freeze
- AGE_BUCKET_LIST =
"AGE_BUCKET_LIST".freeze
- APPTYPE_LIST =
"APPTYPE_LIST".freeze
- COUNTRY_LIST =
"COUNTRY_LIST".freeze
- LOCALE_LIST =
"LOCALE_LIST".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
29 30 31 |
# File 'lib/pinterest_sdk/models/change_history_data_type.rb', line 29 def self.all_vars @all_vars ||= [STRING, NUMERIC, MICROCURRENCY, DATE, BOOL, GENDER_LIST, AGE_BUCKET_LIST, APPTYPE_LIST, COUNTRY_LIST, LOCALE_LIST].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
36 37 38 |
# File 'lib/pinterest_sdk/models/change_history_data_type.rb', line 36 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
43 44 45 46 |
# File 'lib/pinterest_sdk/models/change_history_data_type.rb', line 43 def build_from_hash(value) return value if ChangeHistoryDataType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ChangeHistoryDataType" end |