Class: Gateway

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Gateway

Returns a new instance of Gateway.



29
30
31
32
33
34
35
36
37
# File 'lib/Gateway.rb', line 29

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)
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



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

def balance
  @balance
end

#batchObject

Returns the value of attribute batch.



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

def batch
  @batch
end

#clientObject

Returns the value of attribute client.



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

def client
  @client
end

#configObject

Returns the value of attribute config.



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

def config
  @config
end

#paymentObject

Returns the value of attribute payment.



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

def payment
  @payment
end

#recipientObject

Returns the value of attribute recipient.



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

def recipient
  @recipient
end

#recipient_accountObject

Returns the value of attribute recipient_account.



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

def 
  @recipient_account
end