Sha256: 8de042ec25cec16f68ac6bf0d3af8ff727e014d96902398253dd6fe2061d60a1

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 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 MetricsReportingLevel
    ADVERTISER = "ADVERTISER".freeze
    ADVERTISER_TARGETING = "ADVERTISER_TARGETING".freeze
    CAMPAIGN = "CAMPAIGN".freeze
    CAMPAIGN_TARGETING = "CAMPAIGN_TARGETING".freeze
    AD_GROUP = "AD_GROUP".freeze
    AD_GROUP_TARGETING = "AD_GROUP_TARGETING".freeze
    PIN_PROMOTION = "PIN_PROMOTION".freeze
    PIN_PROMOTION_TARGETING = "PIN_PROMOTION_TARGETING".freeze
    KEYWORD = "KEYWORD".freeze
    PRODUCT_GROUP = "PRODUCT_GROUP".freeze
    PRODUCT_GROUP_TARGETING = "PRODUCT_GROUP_TARGETING".freeze
    PRODUCT_ITEM = "PRODUCT_ITEM".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 = MetricsReportingLevel.constants.select { |c| MetricsReportingLevel::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #MetricsReportingLevel" 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/metrics_reporting_level.rb