Class: FriendlyShipping::Services::Ups::RateEstimatePackageOptions

Inherits:
PackageOptions
  • Object
show all
Defined in:
lib/friendly_shipping/services/ups/rate_estimate_package_options.rb

Overview

Package properties relevant for quoting a UPS package

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) ⇒ RateEstimatePackageOptions

Returns a new instance of RateEstimatePackageOptions.



12
13
14
15
16
17
18
# File 'lib/friendly_shipping/services/ups/rate_estimate_package_options.rb', line 12

def initialize(
  transmit_dimensions: true,
  **kwargs
)
  @transmit_dimensions = transmit_dimensions
  super(**kwargs)
end

Instance Attribute Details

#transmit_dimensionsObject (readonly)

Returns the value of attribute transmit_dimensions.



10
11
12
# File 'lib/friendly_shipping/services/ups/rate_estimate_package_options.rb', line 10

def transmit_dimensions
  @transmit_dimensions
end