Class: FriendlyShipping::Services::UpsJson::RatesPackageOptions
- Inherits:
-
PackageOptions
- Object
- PackageOptions
- FriendlyShipping::Services::UpsJson::RatesPackageOptions
- Defined in:
- lib/friendly_shipping/services/ups_json/rates_package_options.rb
Instance Attribute Summary collapse
-
#transmit_dimensions ⇒ Object
readonly
Returns the value of attribute transmit_dimensions.
Attributes inherited from PackageOptions
Instance Method Summary collapse
-
#initialize(transmit_dimensions: true, **kwargs) ⇒ RatesPackageOptions
constructor
A new instance of RatesPackageOptions.
Methods inherited from PackageOptions
Constructor Details
#initialize(transmit_dimensions: true, **kwargs) ⇒ RatesPackageOptions
Returns a new instance of RatesPackageOptions.
9 10 11 12 13 |
# File 'lib/friendly_shipping/services/ups_json/rates_package_options.rb', line 9 def initialize(transmit_dimensions: true, **kwargs) @transmit_dimensions = transmit_dimensions super(**kwargs.reverse_merge(item_options_class: RatesItemOptions)) end |
Instance Attribute Details
#transmit_dimensions ⇒ Object (readonly)
Returns the value of attribute transmit_dimensions.
7 8 9 |
# File 'lib/friendly_shipping/services/ups_json/rates_package_options.rb', line 7 def transmit_dimensions @transmit_dimensions end |