Class: AmznSpApi::FulfillmentInboundApiModel::SellerFreightClass
- Inherits:
-
Object
- Object
- AmznSpApi::FulfillmentInboundApiModel::SellerFreightClass
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
36 37 38 39 40 41 |
# File 'lib/fulfillment_inbound_api_model/models/seller_freight_class.rb', line 36 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 |