Class: SpaceCalculator::LocationPacker::Container
- Inherits:
-
Object
- Object
- SpaceCalculator::LocationPacker::Container
- Defined in:
- backend/app/model/space_calculator.rb
Instance Attribute Summary collapse
-
#dimensions ⇒ Object
readonly
Returns the value of attribute dimensions.
-
#max_tower_count ⇒ Object
readonly
Returns the value of attribute max_tower_count.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, dimensions, max_tower_count) ⇒ Container
constructor
A new instance of Container.
Constructor Details
#initialize(name, dimensions, max_tower_count) ⇒ Container
Returns a new instance of Container.
340 341 342 343 344 |
# File 'backend/app/model/space_calculator.rb', line 340 def initialize(name, dimensions, max_tower_count) @name = name @dimensions = dimensions @max_tower_count = (max_tower_count == :unlimited) ? :unlimited : Integer(max_tower_count) end |
Instance Attribute Details
#dimensions ⇒ Object (readonly)
Returns the value of attribute dimensions
338 339 340 |
# File 'backend/app/model/space_calculator.rb', line 338 def dimensions @dimensions end |
#max_tower_count ⇒ Object (readonly)
Returns the value of attribute max_tower_count
338 339 340 |
# File 'backend/app/model/space_calculator.rb', line 338 def max_tower_count @max_tower_count end |
#name ⇒ Object (readonly)
Returns the value of attribute name
338 339 340 |
# File 'backend/app/model/space_calculator.rb', line 338 def name @name end |