Class: UR::Product::Storage
- Inherits:
-
Object
- Object
- UR::Product::Storage
- Defined in:
- lib/ur/product/storage.rb
Instance Attribute Summary collapse
-
#compatible ⇒ Object
readonly
Returns the value of attribute compatible.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#order_number ⇒ Object
readonly
Returns the value of attribute order_number.
-
#storage_format ⇒ Object
readonly
Returns the value of attribute storage_format.
-
#storage_kind ⇒ Object
readonly
Returns the value of attribute storage_kind.
-
#storage_type ⇒ Object
readonly
Returns the value of attribute storage_type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Storage
constructor
A new instance of Storage.
Constructor Details
#initialize(data) ⇒ Storage
Returns a new instance of Storage.
7 8 9 10 11 12 13 14 |
# File 'lib/ur/product/storage.rb', line 7 def initialize(data) @order_number = data['ordernumber'] @compatible = data['compatible'] @storage_type = data['type'] @storage_format = data['format'] @location = data['location'] @storage_kind = data['storage_kind'] end |
Instance Attribute Details
#compatible ⇒ Object (readonly)
Returns the value of attribute compatible.
4 5 6 |
# File 'lib/ur/product/storage.rb', line 4 def compatible @compatible end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/ur/product/storage.rb', line 4 def location @location end |
#order_number ⇒ Object (readonly)
Returns the value of attribute order_number.
4 5 6 |
# File 'lib/ur/product/storage.rb', line 4 def order_number @order_number end |
#storage_format ⇒ Object (readonly)
Returns the value of attribute storage_format.
4 5 6 |
# File 'lib/ur/product/storage.rb', line 4 def storage_format @storage_format end |
#storage_kind ⇒ Object (readonly)
Returns the value of attribute storage_kind.
4 5 6 |
# File 'lib/ur/product/storage.rb', line 4 def storage_kind @storage_kind end |
#storage_type ⇒ Object (readonly)
Returns the value of attribute storage_type.
4 5 6 |
# File 'lib/ur/product/storage.rb', line 4 def storage_type @storage_type end |