Class: ShippingScale::Packaging
- Inherits:
-
Object
- Object
- ShippingScale::Packaging
- Defined in:
- lib/shipping_scale/packaging/packaging.rb
Instance Attribute Summary collapse
-
#packages ⇒ Object
Returns the value of attribute packages.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
Instance Attribute Details
#packages ⇒ Object
Returns the value of attribute packages.
3 4 5 |
# File 'lib/shipping_scale/packaging/packaging.rb', line 3 def packages @packages end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/shipping_scale/packaging/packaging.rb', line 3 def response @response end |
Instance Method Details
#details ⇒ Object
14 15 16 |
# File 'lib/shipping_scale/packaging/packaging.rb', line 14 def details response.details end |
#get_price!(options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/shipping_scale/packaging/packaging.rb', line 5 def get_price!( = {}) ShippingScale::Request.config() @response = ShippingScale::Request.new(packages: packages).send! end |
#price ⇒ Object
10 11 12 |
# File 'lib/shipping_scale/packaging/packaging.rb', line 10 def price response.price end |