Class: Postmen::Parcel
Instance Attribute Summary collapse
-
#box_type ⇒ Object
readonly
Returns the value of attribute box_type.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#dimension ⇒ Object
readonly
Returns the value of attribute dimension.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(options) ⇒ Parcel
constructor
A new instance of Parcel.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Parcel
Returns a new instance of Parcel.
11 12 13 14 15 16 17 |
# File 'lib/postmen/parcel.rb', line 11 def initialize() @box_type = [:box_type] @dimension = [:dimension] @items = [:items] @description = [:description] @weight = [:weight] end |
Instance Attribute Details
#box_type ⇒ Object (readonly)
Returns the value of attribute box_type.
5 6 7 |
# File 'lib/postmen/parcel.rb', line 5 def box_type @box_type end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/postmen/parcel.rb', line 5 def description @description end |
#dimension ⇒ Object (readonly)
Returns the value of attribute dimension.
5 6 7 |
# File 'lib/postmen/parcel.rb', line 5 def dimension @dimension end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
5 6 7 |
# File 'lib/postmen/parcel.rb', line 5 def items @items end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
5 6 7 |
# File 'lib/postmen/parcel.rb', line 5 def weight @weight end |