class SimpleShipping::Package
Represents a package which should be sent from {SimpleShipping::Party shipper} to {SimpleShipping::Party recipient}.
Attributes:¶ ↑
-
dimenstion_units (:in, :cm). Default is :in.
-
weight_units (:kg, :lb). Default is :lb.
-
legth (in dimension units)
-
width (in dimension units)
-
height (in dimension units)
-
weight (in weight units)
-
packaging_type
Packaging type values:¶ ↑
-
:envelope
-
:your
-
:tube
-
:pak
-
:box
-
:box_10kg
-
:box_25kg
Attributes
declared_value[RW]
dimension_units[RW]
height[RW]
insured_value[RW]
length[RW]
packaging_type[RW]
weight[RW]
weight_units[RW]
width[RW]
Public Instance Methods
custom_package?()
click to toggle source
Whether the package is a custom package.
# File lib/simple_shipping/package.rb, line 39 def custom_package? packaging_type == :your end