Class: Boxify::PlacedBox
- Inherits:
-
Object
- Object
- Boxify::PlacedBox
- Extended by:
- Forwardable
- Defined in:
- lib/boxify/placed_box.rb
Instance Attribute Summary collapse
-
#box ⇒ Object
readonly
Returns the value of attribute box.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
Instance Method Summary collapse
-
#initialize(box:, level:) ⇒ PlacedBox
constructor
A new instance of PlacedBox.
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
#box ⇒ Object (readonly)
Returns the value of attribute box.
5 6 7 |
# File 'lib/boxify/placed_box.rb', line 5 def box @box end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
5 6 7 |
# File 'lib/boxify/placed_box.rb', line 5 def level @level end |