Class: ShippingScale::Shipment

Inherits:
Packaging show all
Defined in:
lib/shipping_scale/packaging/shipment.rb

Instance Attribute Summary

Attributes inherited from Packaging

#packages, #response

Instance Method Summary collapse

Methods inherited from Packaging

#details, #get_price!, #price

Constructor Details

#initialize(packages) ⇒ Shipment

Returns a new instance of Shipment.



3
4
5
# File 'lib/shipping_scale/packaging/shipment.rb', line 3

def initialize(packages)
  @packages = packages
end

Instance Method Details

#pricesObject



7
8
9
# File 'lib/shipping_scale/packaging/shipment.rb', line 7

def prices
  response.prices
end