Class: FriendlyShipping::Services::UpsJson::RatesItemOptions

Inherits:
ItemOptions
  • Object
show all
Defined in:
lib/friendly_shipping/services/ups_json/rates_item_options.rb

Overview

Represents item options for determining rates.

Instance Attribute Summary collapse

Attributes inherited from ItemOptions

#item_id

Instance Method Summary collapse

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_codeObject (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_originObject (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