Class: AmzSpApi::FulfillmentInboundApiModel::SellerFreightClass

Inherits:
Object
  • Object
show all
Defined in:
lib/fulfillment-inbound-api-model/models/seller_freight_class.rb

Constant Summary collapse

N50 =
'50'.freeze
N55 =
'55'.freeze
N60 =
'60'.freeze
N65 =
'65'.freeze
N70 =
'70'.freeze
N775 =
'77.5'.freeze
N85 =
'85'.freeze
N925 =
'92.5'.freeze
N100 =
'100'.freeze
N110 =
'110'.freeze
N125 =
'125'.freeze
N150 =
'150'.freeze
N175 =
'175'.freeze
N200 =
'200'.freeze
N250 =
'250'.freeze
N300 =
'300'.freeze
N400 =
'400'.freeze
N500 =
'500'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



38
39
40
41
42
# File 'lib/fulfillment-inbound-api-model/models/seller_freight_class.rb', line 38

def build_from_hash(value)
  constantValues = SellerFreightClass.constants.select { |c| SellerFreightClass::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #SellerFreightClass" if constantValues.empty?
  value
end