Class: SpaceCalculator::LocationPacker::Container

Inherits:
Object
  • Object
show all
Defined in:
backend/app/model/space_calculator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dimensionsObject (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_countObject (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

#nameObject (readonly)

Returns the value of attribute name



338
339
340
# File 'backend/app/model/space_calculator.rb', line 338

def name
  @name
end