Class: PaymentTest::PaymentPluginControl::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/payment_test/api_control.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_payment_id)
  @kb_account_id = 
  @kb_payment_id = kb_payment_id
  @transactions = Array.new
end

Instance Attribute Details

#kb_account_idObject (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
end

#kb_payment_idObject (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

#transactionsObject (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