Class: PaymentRails::Gateway

Inherits:
Object
  • Object
show all
Defined in:
lib/paymentrails/Gateway.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Gateway

Returns a new instance of Gateway.



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/paymentrails/Gateway.rb', line 30

def initialize(config)
  @config = config
  @client = Client.new(config)
  @recipient = RecipientGateway.new(client)
  @recipient_account = RecipientAccountGateway.new(client)
  @batch = BatchGateway.new(client)
  @payment = PaymentGateway.new(client)
  @balance = BalanceGateway.new(client)
  @offline_payment = OfflinePaymentGateway.new(client)
  @invoice = InvoiceGateway.new(client)
  @invoice_payment = InvoicePaymentGateway.new(client)
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



21
22
23
# File 'lib/paymentrails/Gateway.rb', line 21

def balance
  @balance
end

#batchObject

Returns the value of attribute batch.



15
16
17
# File 'lib/paymentrails/Gateway.rb', line 15

def batch
  @batch
end

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/paymentrails/Gateway.rb', line 6

def client
  @client
end

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/paymentrails/Gateway.rb', line 3

def config
  @config
end

#invoiceObject

Returns the value of attribute invoice.



27
28
29
# File 'lib/paymentrails/Gateway.rb', line 27

def invoice
  @invoice
end

#invoice_paymentObject

Returns the value of attribute invoice_payment.



28
29
30
# File 'lib/paymentrails/Gateway.rb', line 28

def invoice_payment
  @invoice_payment
end

#offline_paymentObject

Returns the value of attribute offline_payment.



24
25
26
# File 'lib/paymentrails/Gateway.rb', line 24

def offline_payment
  @offline_payment
end

#paymentObject

Returns the value of attribute payment.



18
19
20
# File 'lib/paymentrails/Gateway.rb', line 18

def payment
  @payment
end

#recipientObject

Returns the value of attribute recipient.



9
10
11
# File 'lib/paymentrails/Gateway.rb', line 9

def recipient
  @recipient
end

#recipient_accountObject

Returns the value of attribute recipient_account.



12
13
14
# File 'lib/paymentrails/Gateway.rb', line 12

def 
  @recipient_account
end