Class: Postmen::Shipment
- Inherits:
-
Object
- Object
- Postmen::Shipment
- Includes:
- Common
- Defined in:
- lib/postmen/shipment.rb
Instance Attribute Summary collapse
-
#parcels ⇒ Object
readonly
Returns the value of attribute parcels.
-
#ship_from ⇒ Object
readonly
Returns the value of attribute ship_from.
-
#ship_to ⇒ Object
readonly
Returns the value of attribute ship_to.
Instance Method Summary collapse
-
#initialize(options) ⇒ Shipment
constructor
A new instance of Shipment.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Shipment
Returns a new instance of Shipment.
9 10 11 12 13 |
# File 'lib/postmen/shipment.rb', line 9 def initialize() @ship_from = [:ship_from] @ship_to = [:ship_to] @parcels = [:parcels] end |
Instance Attribute Details
#parcels ⇒ Object (readonly)
Returns the value of attribute parcels.
5 6 7 |
# File 'lib/postmen/shipment.rb', line 5 def parcels @parcels end |
#ship_from ⇒ Object (readonly)
Returns the value of attribute ship_from.
5 6 7 |
# File 'lib/postmen/shipment.rb', line 5 def ship_from @ship_from end |
#ship_to ⇒ Object (readonly)
Returns the value of attribute ship_to.
5 6 7 |
# File 'lib/postmen/shipment.rb', line 5 def ship_to @ship_to end |