Class: FriendlyShipping::Services::UpsJson::RatesPackageOptions

Inherits:
PackageOptions
  • Object
show all
Defined in:
lib/friendly_shipping/services/ups_json/rates_package_options.rb

Instance Attribute Summary collapse

Attributes inherited from PackageOptions

#package_id

Instance Method Summary collapse

Methods inherited from PackageOptions

#options_for_item

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_dimensionsObject (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