Class: Trolley::Gateway

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Gateway

Returns a new instance of Gateway.



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/trolley/Gateway.rb', line 5

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.



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

def balance
  @balance
end

#batchObject

Returns the value of attribute batch.



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

def batch
  @batch
end

#clientObject

Returns the value of attribute client.



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

def client
  @client
end

#configObject

Returns the value of attribute config.



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

def config
  @config
end

#invoiceObject

Returns the value of attribute invoice.



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

def invoice
  @invoice
end

#invoice_paymentObject

Returns the value of attribute invoice_payment.



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

def invoice_payment
  @invoice_payment
end

#offline_paymentObject

Returns the value of attribute offline_payment.



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

def offline_payment
  @offline_payment
end

#paymentObject

Returns the value of attribute payment.



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

def payment
  @payment
end

#recipientObject

Returns the value of attribute recipient.



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

def recipient
  @recipient
end

#recipient_accountObject

Returns the value of attribute recipient_account.



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

def 
  @recipient_account
end