Class: PinterestSdkClient::PlacementGroupType
- Inherits:
-
Object
- Object
- PinterestSdkClient::PlacementGroupType
- Defined in:
- lib/pinterest_sdk/models/placement_group_type.rb
Constant Summary collapse
- ALL =
"ALL".freeze
- SEARCH =
"SEARCH".freeze
- BROWSE =
"BROWSE".freeze
- OTHER =
"OTHER".freeze
Class Method Summary collapse
-
.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
.build_from_hash(value) ⇒ String
Builds the enum from string
26 27 28 |
# File 'lib/pinterest_sdk/models/placement_group_type.rb', line 26 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
33 34 35 36 37 |
# File 'lib/pinterest_sdk/models/placement_group_type.rb', line 33 def build_from_hash(value) constantValues = PlacementGroupType.constants.select { |c| PlacementGroupType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PlacementGroupType" if constantValues.empty? value end |