Class: PinterestSdkClient::AudienceStatus
- Inherits:
-
Object
- Object
- PinterestSdkClient::AudienceStatus
- Defined in:
- lib/pinterest_sdk/models/audience_status.rb
Constant Summary collapse
- INITIALIZING =
"INITIALIZING".freeze
- READY =
"READY".freeze
- TOO_SMALL =
"TOO_SMALL".freeze
- ELIGIBLE =
"ELIGIBLE".freeze
- PERSONAS_INELIGIBLE_SIZE =
"PERSONAS_INELIGIBLE_SIZE".freeze
- PERSONAS_INITIALIZING =
"PERSONAS_INITIALIZING".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/pinterest_sdk/models/audience_status.rb', line 25 def self.all_vars @all_vars ||= [INITIALIZING, READY, TOO_SMALL, ELIGIBLE, PERSONAS_INELIGIBLE_SIZE, PERSONAS_INITIALIZING].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/pinterest_sdk/models/audience_status.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/pinterest_sdk/models/audience_status.rb', line 39 def build_from_hash(value) return value if AudienceStatus.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #AudienceStatus" end |