Class: Boxify::PlacedBox

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/boxify/placed_box.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(box:, level:) ⇒ PlacedBox

Returns a new instance of PlacedBox.



9
10
11
12
# File 'lib/boxify/placed_box.rb', line 9

def initialize(box:, level:)
  @box = box
  @level = level
end

Instance Attribute Details

#boxObject (readonly)

Returns the value of attribute box.



5
6
7
# File 'lib/boxify/placed_box.rb', line 5

def box
  @box
end

#levelObject (readonly)

Returns the value of attribute level.



5
6
7
# File 'lib/boxify/placed_box.rb', line 5

def level
  @level
end