Class: Xsys::Model::PurchaseOrderItem
- Inherits:
-
Object
- Object
- Xsys::Model::PurchaseOrderItem
- Defined in:
- lib/xsys/model/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.
-
#transaction_date ⇒ Object
Returns the value of attribute transaction_date.
-
#transaction_kind_id ⇒ Object
Returns the value of attribute transaction_kind_id.
-
#transaction_status_id ⇒ Object
Returns the value of attribute transaction_status_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PurchaseOrderItem
constructor
A new instance of PurchaseOrderItem.
Constructor Details
#initialize(attributes = {}) ⇒ PurchaseOrderItem
Returns a new instance of PurchaseOrderItem.
7 8 9 10 11 |
# File 'lib/xsys/model/purchase_order_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
#product_id ⇒ Object
Returns the value of attribute product_id.
4 5 6 |
# File 'lib/xsys/model/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/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/purchase_order_item.rb', line 4 def remaining_quantity @remaining_quantity end |
#transaction_date ⇒ Object
Returns the value of attribute transaction_date.
4 5 6 |
# File 'lib/xsys/model/purchase_order_item.rb', line 4 def transaction_date @transaction_date end |
#transaction_kind_id ⇒ Object
Returns the value of attribute transaction_kind_id.
4 5 6 |
# File 'lib/xsys/model/purchase_order_item.rb', line 4 def transaction_kind_id @transaction_kind_id end |
#transaction_status_id ⇒ Object
Returns the value of attribute transaction_status_id.
4 5 6 |
# File 'lib/xsys/model/purchase_order_item.rb', line 4 def transaction_status_id @transaction_status_id end |