Class: Xsys::Model::TransactionItem
- Inherits:
-
Object
- Object
- Xsys::Model::TransactionItem
- Defined in:
- lib/xsys/model/transaction_item.rb
Instance Attribute Summary collapse
-
#amount_total ⇒ Object
Returns the value of attribute amount_total.
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#miles ⇒ Object
Returns the value of attribute miles.
-
#packages ⇒ Object
Returns the value of attribute packages.
-
#product_id ⇒ Object
Returns the value of attribute product_id.
-
#qa_date ⇒ Object
Returns the value of attribute qa_date.
-
#qa_flag ⇒ Object
Returns the value of attribute qa_flag.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#remaining_quantity ⇒ Object
Returns the value of attribute remaining_quantity.
-
#transaction_status_id ⇒ Object
Returns the value of attribute transaction_status_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ TransactionItem
constructor
A new instance of TransactionItem.
Constructor Details
#initialize(attributes = {}) ⇒ TransactionItem
Returns a new instance of TransactionItem.
8 9 10 11 12 |
# File 'lib/xsys/model/transaction_item.rb', line 8 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) end end |
Instance Attribute Details
#amount_total ⇒ Object
Returns the value of attribute amount_total.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def amount_total @amount_total end |
#cost ⇒ Object
Returns the value of attribute cost.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def cost @cost end |
#miles ⇒ Object
Returns the value of attribute miles.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def miles @miles end |
#packages ⇒ Object
Returns the value of attribute packages.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def packages @packages end |
#product_id ⇒ Object
Returns the value of attribute product_id.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def product_id @product_id end |
#qa_date ⇒ Object
Returns the value of attribute qa_date.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def qa_date @qa_date end |
#qa_flag ⇒ Object
Returns the value of attribute qa_flag.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def qa_flag @qa_flag end |
#quantity ⇒ Object
Returns the value of attribute quantity.
4 5 6 |
# File 'lib/xsys/model/transaction_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/transaction_item.rb', line 4 def remaining_quantity @remaining_quantity end |
#transaction_status_id ⇒ Object
Returns the value of attribute transaction_status_id.
4 5 6 |
# File 'lib/xsys/model/transaction_item.rb', line 4 def transaction_status_id @transaction_status_id end |