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(object_type:, height:, width:, length:, diameter:) ⇒ DimensionObject
constructor
A new instance of DimensionObject.
Constructor Details
permalink #initialize(object_type:, height:, width:, length:, diameter:) ⇒ DimensionObject
Returns a new instance of DimensionObject.
8 9 10 11 12 13 14 |
# File 'lib/sigep_web/models/dimension_object.rb', line 8 def initialize(object_type:, height:, width:, length:, diameter:) @object_type = object_type @height = height @width = width @length = length @diameter = diameter end |
Instance Attribute Details
permalink #diameter ⇒ Object
Returns the value of attribute diameter.
6 7 8 |
# File 'lib/sigep_web/models/dimension_object.rb', line 6 def diameter @diameter end |
permalink #height ⇒ Object
Returns the value of attribute height.
6 7 8 |
# File 'lib/sigep_web/models/dimension_object.rb', line 6 def height @height end |
permalink #length ⇒ Object
Returns the value of attribute length.
6 7 8 |
# File 'lib/sigep_web/models/dimension_object.rb', line 6 def length @length end |
permalink #object_type ⇒ Object
Returns the value of attribute object_type.
6 7 8 |
# File 'lib/sigep_web/models/dimension_object.rb', line 6 def object_type @object_type end |
permalink #width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'lib/sigep_web/models/dimension_object.rb', line 6 def width @width end |