Class: DCAS::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/dcas/payment.rb

Direct Known Subclasses

AchPayment, CreditCardPayment, CreditCardRefund

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_id, client_name, amount, *args) ⇒ Payment

Returns a new instance of Payment.



46
47
48
49
50
51
52
# File 'lib/dcas/payment.rb', line 46

def initialize(client_id, client_name, amount, *args)
  @client_id = client_id
  @client_name = client_name
  @amount = amount
  @txn_type = 'Debit'
  return args
end

Instance Attribute Details

#batchObject

Returns the value of attribute batch.



44
45
46
# File 'lib/dcas/payment.rb', line 44

def batch
  @batch
end