Class: Xsys::Model::StockControlItem
- Inherits:
-
Object
- Object
- Xsys::Model::StockControlItem
- Defined in:
- lib/xsys/model/stock_control_item.rb
Instance Attribute Summary collapse
-
#miles ⇒ Object
Returns the value of attribute miles.
-
#packages ⇒ Object
Returns the value of attribute packages.
-
#product_category_id ⇒ Object
Returns the value of attribute product_category_id.
-
#product_id ⇒ Object
Returns the value of attribute product_id.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#shop_code ⇒ Object
Returns the value of attribute shop_code.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ StockControlItem
constructor
A new instance of StockControlItem.
Constructor Details
#initialize(attributes = {}) ⇒ StockControlItem
Returns a new instance of StockControlItem.
7 8 9 10 11 |
# File 'lib/xsys/model/stock_control_item.rb', line 7 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) end end |
Instance Attribute Details
#miles ⇒ Object
Returns the value of attribute miles.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def miles @miles end |
#packages ⇒ Object
Returns the value of attribute packages.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def packages @packages end |
#product_category_id ⇒ Object
Returns the value of attribute product_category_id.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def product_category_id @product_category_id end |
#product_id ⇒ Object
Returns the value of attribute product_id.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def product_id @product_id end |
#quantity ⇒ Object
Returns the value of attribute quantity.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def quantity @quantity end |
#shop_code ⇒ Object
Returns the value of attribute shop_code.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def shop_code @shop_code end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
4 5 6 |
# File 'lib/xsys/model/stock_control_item.rb', line 4 def transaction_id @transaction_id end |