Sha256: 11008455166cce5b9990795103ad3c338af3a8d01ea4de5177ae22f9b1f81ecf

Contents?: true

Size: 1014 Bytes

Versions: 1

Compression:

Stored size: 1014 Bytes

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 PlacementGroupType
    ALL = "ALL".freeze
    SEARCH = "SEARCH".freeze
    BROWSE = "BROWSE".freeze
    OTHER = "OTHER".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 = PlacementGroupType.constants.select { |c| PlacementGroupType::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #PlacementGroupType" 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/placement_group_type.rb