Class: Xsys::Model::GroupedPurchaseOrderItem
- Inherits:
-
Object
- Object
- Xsys::Model::GroupedPurchaseOrderItem
- Defined in:
- lib/xsys/model/grouped_purchase_order_item.rb
Instance Attribute Summary collapse
-
#product_id ⇒ Object
Returns the value of attribute product_id.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#remaining_quantity ⇒ Object
Returns the value of attribute remaining_quantity.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GroupedPurchaseOrderItem
constructor
A new instance of GroupedPurchaseOrderItem.
Constructor Details
#initialize(attributes = {}) ⇒ GroupedPurchaseOrderItem
Returns a new instance of GroupedPurchaseOrderItem.
6 7 8 9 10 |
# File 'lib/xsys/model/grouped_purchase_order_item.rb', line 6 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) end end |
Instance Attribute Details
#product_id ⇒ Object
Returns the value of attribute product_id.
4 5 6 |
# File 'lib/xsys/model/grouped_purchase_order_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/grouped_purchase_order_item.rb', line 4 def quantity @quantity end |
#remaining_quantity ⇒ Object
Returns the value of attribute remaining_quantity.
4 5 6 |
# File 'lib/xsys/model/grouped_purchase_order_item.rb', line 4 def remaining_quantity @remaining_quantity end |