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