Class: FriendlyShipping::Services::UpsJson::RatesItemOptions
- Inherits:
-
ItemOptions
- Object
- ItemOptions
- FriendlyShipping::Services::UpsJson::RatesItemOptions
- Defined in:
- lib/friendly_shipping/services/ups_json/rates_item_options.rb
Overview
Represents item options for determining rates.
Instance Attribute Summary collapse
-
#commodity_code ⇒ Object
readonly
Returns the value of attribute commodity_code.
-
#country_of_origin ⇒ Object
readonly
Returns the value of attribute country_of_origin.
Attributes inherited from ItemOptions
Instance Method Summary collapse
-
#initialize(commodity_code: nil, country_of_origin: nil, **kwargs) ⇒ RatesItemOptions
constructor
A new instance of RatesItemOptions.
Constructor Details
#initialize(commodity_code: nil, country_of_origin: nil, **kwargs) ⇒ RatesItemOptions
Returns a new instance of RatesItemOptions.
12 13 14 15 16 |
# File 'lib/friendly_shipping/services/ups_json/rates_item_options.rb', line 12 def initialize(commodity_code: nil, country_of_origin: nil, **kwargs) @commodity_code = commodity_code @country_of_origin = country_of_origin super(**kwargs) end |
Instance Attribute Details
#commodity_code ⇒ Object (readonly)
Returns the value of attribute commodity_code.
10 11 12 |
# File 'lib/friendly_shipping/services/ups_json/rates_item_options.rb', line 10 def commodity_code @commodity_code end |
#country_of_origin ⇒ Object (readonly)
Returns the value of attribute country_of_origin.
10 11 12 |
# File 'lib/friendly_shipping/services/ups_json/rates_item_options.rb', line 10 def country_of_origin @country_of_origin end |