Class: PaymentTest::PaymentPluginControl::Payment
- Inherits:
-
Object
- Object
- PaymentTest::PaymentPluginControl::Payment
- Defined in:
- lib/payment_test/api_control.rb
Instance Attribute Summary collapse
-
#kb_account_id ⇒ Object
readonly
Returns the value of attribute kb_account_id.
-
#kb_payment_id ⇒ Object
readonly
Returns the value of attribute kb_payment_id.
-
#transactions ⇒ Object
readonly
Returns the value of attribute transactions.
Instance Method Summary collapse
- #add_transaction(transaction) ⇒ Object
-
#initialize(kb_account_id, kb_payment_id) ⇒ Payment
constructor
A new instance of Payment.
Constructor Details
#initialize(kb_account_id, kb_payment_id) ⇒ Payment
Returns a new instance of Payment.
10 11 12 13 14 |
# File 'lib/payment_test/api_control.rb', line 10 def initialize(kb_account_id, kb_payment_id) @kb_account_id = kb_account_id @kb_payment_id = kb_payment_id @transactions = Array.new end |
Instance Attribute Details
#kb_account_id ⇒ Object (readonly)
Returns the value of attribute kb_account_id.
8 9 10 |
# File 'lib/payment_test/api_control.rb', line 8 def kb_account_id @kb_account_id end |
#kb_payment_id ⇒ Object (readonly)
Returns the value of attribute kb_payment_id.
8 9 10 |
# File 'lib/payment_test/api_control.rb', line 8 def kb_payment_id @kb_payment_id end |
#transactions ⇒ Object (readonly)
Returns the value of attribute transactions.
8 9 10 |
# File 'lib/payment_test/api_control.rb', line 8 def transactions @transactions end |
Instance Method Details
#add_transaction(transaction) ⇒ Object
16 17 18 |
# File 'lib/payment_test/api_control.rb', line 16 def add_transaction(transaction) @transactions << transaction end |