Sha256: ddd4c2cade44548d42bbf3d0d6fd5b654581b1e6c0f33667fbefb732ce603eb4
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 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 Currency UNK = "UNK".freeze USD = "USD".freeze GBP = "GBP".freeze CAD = "CAD".freeze EUR = "EUR".freeze AUD = "AUD".freeze NZD = "NZD".freeze SEK = "SEK".freeze ILS = "ILS".freeze CHF = "CHF".freeze HKD = "HKD".freeze JPY = "JPY".freeze SGD = "SGD".freeze KRW = "KRW".freeze NOK = "NOK".freeze DKK = "DKK".freeze PLN = "PLN".freeze RON = "RON".freeze HUF = "HUF".freeze CZK = "CZK".freeze BRL = "BRL".freeze MXN = "MXN".freeze ARS = "ARS".freeze CLP = "CLP".freeze COP = "COP".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 = Currency.constants.select { |c| Currency::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Currency" 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/currency.rb |