Class: PinterestSdkClient::TrendsSupportedRegion
- Inherits:
-
Object
- Object
- PinterestSdkClient::TrendsSupportedRegion
- Defined in:
- lib/pinterest_sdk/models/trends_supported_region.rb
Constant Summary collapse
- US =
"US".freeze
- CA =
"CA".freeze
- DE =
"DE".freeze
- FR =
"FR".freeze
- ES =
"ES".freeze
- IT =
"IT".freeze
- DEATCH =
"DE+AT+CH".freeze
- GBIE =
"GB+IE".freeze
- ITESPTGRMT =
"IT+ES+PT+GR+MT".freeze
- PLROHUSKCZ =
"PL+RO+HU+SK+CZ".freeze
- SEDKFINO =
"SE+DK+FI+NO".freeze
- NLBELU =
"NL+BE+LU".freeze
- AR =
"AR".freeze
- BR =
"BR".freeze
- CO =
"CO".freeze
- MX =
"MX".freeze
- MXARCOCL =
"MX+AR+CO+CL".freeze
- AUNZ =
"AU+NZ".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
37 38 39 |
# File 'lib/pinterest_sdk/models/trends_supported_region.rb', line 37 def self.all_vars @all_vars ||= [US, CA, DE, FR, ES, IT, DEATCH, GBIE, ITESPTGRMT, PLROHUSKCZ, SEDKFINO, NLBELU, AR, BR, CO, MX, MXARCOCL, AUNZ].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
44 45 46 |
# File 'lib/pinterest_sdk/models/trends_supported_region.rb', line 44 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
51 52 53 54 |
# File 'lib/pinterest_sdk/models/trends_supported_region.rb', line 51 def build_from_hash(value) return value if TrendsSupportedRegion.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #TrendsSupportedRegion" end |