Sha256: b1c1dbc276a70239191e3610cae565e8d116482b2faf17fd95f47e40048c305a
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
=begin #Pinterest REST API #Pinterest's REST API The version of the OpenAPI document: 5.3.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.4.0 =end require 'date' require 'time' module PinterestSdkClient class ObjectiveType AWARENESS = "AWARENESS".freeze CONSIDERATION = "CONSIDERATION".freeze VIDEO_VIEW = "VIDEO_VIEW".freeze WEB_CONVERSION = "WEB_CONVERSION".freeze CATALOG_SALES = "CATALOG_SALES".freeze WEB_SESSIONS = "WEB_SESSIONS".freeze AWARENESS_RESERVED = "AWARENESS_RESERVED".freeze ENGAGEMENT = "ENGAGEMENT".freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) constantValues = ObjectiveType.constants.select { |c| ObjectiveType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ObjectiveType" if constantValues.empty? value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pinterest_sdk-1.1.0 | lib/pinterest_sdk/models/objective_type.rb |