Class: PinterestSdkClient::ConversionEvent
- Inherits:
-
Object
- Object
- PinterestSdkClient::ConversionEvent
- Defined in:
- lib/pinterest_sdk/models/conversion_event.rb
Constant Summary collapse
- PAGE_VISIT =
"PAGE_VISIT".freeze
- SIGNUP =
"SIGNUP".freeze
- CHECKOUT =
"CHECKOUT".freeze
- CUSTOM =
"CUSTOM".freeze
- VIEW_CATEGORY =
"VIEW_CATEGORY".freeze
- SEARCH =
"SEARCH".freeze
- ADD_TO_CART =
"ADD_TO_CART".freeze
- WATCH_VIDEO =
"WATCH_VIDEO".freeze
- LEAD =
"LEAD".freeze
- APP_INSTALL =
"APP_INSTALL".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/conversion_event.rb', line 29 def self.all_vars @all_vars ||= [PAGE_VISIT, SIGNUP, CHECKOUT, CUSTOM, VIEW_CATEGORY, SEARCH, ADD_TO_CART, WATCH_VIDEO, LEAD, APP_INSTALL].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
36 37 38 |
# File 'lib/pinterest_sdk/models/conversion_event.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/conversion_event.rb', line 43 def build_from_hash(value) return value if ConversionEvent.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ConversionEvent" end |