Class: Zernio::AdStatus
- Inherits:
-
Object
- Object
- Zernio::AdStatus
- Defined in:
- lib/zernio-sdk/models/ad_status.rb
Constant Summary collapse
- ACTIVE =
"active".freeze
- PAUSED =
"paused".freeze
- PENDING_REVIEW =
"pending_review".freeze
- REJECTED =
"rejected".freeze
- COMPLETED =
"completed".freeze
- CANCELLED =
"cancelled".freeze
- ERROR =
"error".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
26 27 28 |
# File 'lib/zernio-sdk/models/ad_status.rb', line 26 def self.all_vars @all_vars ||= [ACTIVE, PAUSED, PENDING_REVIEW, REJECTED, COMPLETED, CANCELLED, ERROR].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
33 34 35 |
# File 'lib/zernio-sdk/models/ad_status.rb', line 33 def self.build_from_hash(value) new.build_from_hash(value) end |