Class: SigepWeb::Models::DimensionObject
- Inherits:
-
Object
- Object
- SigepWeb::Models::DimensionObject
- Defined in:
- lib/sigep_web/Models/dimension_object.rb
Instance Attribute Summary collapse
-
#diameter ⇒ Object
Returns the value of attribute diameter.
-
#height ⇒ Object
Returns the value of attribute height.
-
#length ⇒ Object
Returns the value of attribute length.
-
#object_type ⇒ Object
Returns the value of attribute object_type.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DimensionObject
constructor
A new instance of DimensionObject.
Constructor Details
#initialize(options = {}) ⇒ DimensionObject
Returns a new instance of DimensionObject.
6 7 8 9 10 11 12 |
# File 'lib/sigep_web/Models/dimension_object.rb', line 6 def initialize( = {}) @object_type = [:object_type] @height = [:height] @width = [:width] @length = [:length] @diameter = [:diameter] end |
Instance Attribute Details
#diameter ⇒ Object
Returns the value of attribute diameter.
4 5 6 |
# File 'lib/sigep_web/Models/dimension_object.rb', line 4 def diameter @diameter end |
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/sigep_web/Models/dimension_object.rb', line 4 def height @height end |
#length ⇒ Object
Returns the value of attribute length.
4 5 6 |
# File 'lib/sigep_web/Models/dimension_object.rb', line 4 def length @length end |
#object_type ⇒ Object
Returns the value of attribute object_type.
4 5 6 |
# File 'lib/sigep_web/Models/dimension_object.rb', line 4 def object_type @object_type end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/sigep_web/Models/dimension_object.rb', line 4 def width @width end |