Sha256: ef3297c55b513220618bd22f7efccf052d5ccc482b710682fc2221b11afbdc78

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

=begin
#Pinterest REST API

#Pinterest's REST API

The version of the OpenAPI document: 5.3.0
Contact: pinterest-api@pinterest.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.4.0

=end

require 'date'
require 'time'

module PinterestSdkClient
  class ConversionAttributionWindowDays
    N1 = 1.freeze
    N7 = 7.freeze
    N30 = 30.freeze
    N60 = 60.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 = ConversionAttributionWindowDays.constants.select { |c| ConversionAttributionWindowDays::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #ConversionAttributionWindowDays" if constantValues.empty?
      value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pinterest_sdk-1.0.0 lib/pinterest_sdk/models/conversion_attribution_window_days.rb