Class: SigepWeb::Models::DimensionObject

Inherits:
Object
  • Object
show all
Defined in:
lib/sigep_web/models/dimension_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

#diameterObject

Returns the value of attribute diameter.



6
7
8
# File 'lib/sigep_web/models/dimension_object.rb', line 6

def diameter
  @diameter
end

#heightObject

Returns the value of attribute height.



6
7
8
# File 'lib/sigep_web/models/dimension_object.rb', line 6

def height
  @height
end

#lengthObject

Returns the value of attribute length.



6
7
8
# File 'lib/sigep_web/models/dimension_object.rb', line 6

def length
  @length
end

#object_typeObject

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

#widthObject

Returns the value of attribute width.



6
7
8
# File 'lib/sigep_web/models/dimension_object.rb', line 6

def width
  @width
end