Class: Physical::Item
Constant Summary collapse
- DEFAULT_LENGTH =
0
Instance Attribute Summary collapse
-
#cost ⇒ Object
readonly
Returns the value of attribute cost.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#sku ⇒ Object
readonly
Returns the value of attribute sku.
Attributes inherited from Cuboid
#dimensions, #height, #id, #length, #properties, #weight, #width
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Item
constructor
A new instance of Item.
Methods inherited from Cuboid
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Physical::PropertyReaders
Instance Attribute Details
#cost ⇒ Object (readonly)
Returns the value of attribute cost.
7 8 9 |
# File 'lib/physical/item.rb', line 7 def cost @cost end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/physical/item.rb', line 7 def description @description end |
#sku ⇒ Object (readonly)
Returns the value of attribute sku.
7 8 9 |
# File 'lib/physical/item.rb', line 7 def sku @sku end |