Class: Boxify::Space

Inherits:
Object
  • Object
show all
Includes:
Dimensionable
Defined in:
lib/boxify/space.rb

Instance Attribute Summary

Attributes included from Dimensionable

#depth, #height, #width

Instance Method Summary collapse

Methods included from Dimensionable

#area, #surface_area, #volume

Constructor Details

#initialize(width:, depth:, height:) ⇒ Space

Returns a new instance of Space.



5
6
7
8
9
# File 'lib/boxify/space.rb', line 5

def initialize(width:, depth:, height:)
  @width = width
  @depth = depth
  @height = height
end