Class: UR::Product::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/ur/product/storage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#compatibleObject (readonly)

Returns the value of attribute compatible.



4
5
6
# File 'lib/ur/product/storage.rb', line 4

def compatible
  @compatible
end

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/ur/product/storage.rb', line 4

def location
  @location
end

#order_numberObject (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_formatObject (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_kindObject (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_typeObject (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