Class: Trolley::Gateway
- Inherits:
-
Object
- Object
- Trolley::Gateway
- Defined in:
- lib/trolley/Gateway.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#batch ⇒ Object
Returns the value of attribute batch.
-
#client ⇒ Object
Returns the value of attribute client.
-
#config ⇒ Object
Returns the value of attribute config.
-
#invoice ⇒ Object
Returns the value of attribute invoice.
-
#invoice_payment ⇒ Object
Returns the value of attribute invoice_payment.
-
#offline_payment ⇒ Object
Returns the value of attribute offline_payment.
-
#payment ⇒ Object
Returns the value of attribute payment.
-
#recipient ⇒ Object
Returns the value of attribute recipient.
-
#recipient_account ⇒ Object
Returns the value of attribute recipient_account.
Instance Method Summary collapse
-
#initialize(config) ⇒ Gateway
constructor
A new instance of Gateway.
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
#balance ⇒ Object
Returns the value of attribute balance.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def balance @balance end |
#batch ⇒ Object
Returns the value of attribute batch.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def batch @batch end |
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def client @client end |
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def config @config end |
#invoice ⇒ Object
Returns the value of attribute invoice.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def invoice @invoice end |
#invoice_payment ⇒ Object
Returns the value of attribute invoice_payment.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def invoice_payment @invoice_payment end |
#offline_payment ⇒ Object
Returns the value of attribute offline_payment.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def offline_payment @offline_payment end |
#payment ⇒ Object
Returns the value of attribute payment.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def payment @payment end |
#recipient ⇒ Object
Returns the value of attribute recipient.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def recipient @recipient end |
#recipient_account ⇒ Object
Returns the value of attribute recipient_account.
3 4 5 |
# File 'lib/trolley/Gateway.rb', line 3 def recipient_account @recipient_account end |