Class: PaymentRails::Gateway
- Inherits:
-
Object
- Object
- PaymentRails::Gateway
- Defined in:
- lib/paymentrails/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.
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
#balance ⇒ Object
Returns the value of attribute balance.
21 22 23 |
# File 'lib/paymentrails/Gateway.rb', line 21 def balance @balance end |
#batch ⇒ Object
Returns the value of attribute batch.
15 16 17 |
# File 'lib/paymentrails/Gateway.rb', line 15 def batch @batch end |
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/paymentrails/Gateway.rb', line 6 def client @client end |
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/paymentrails/Gateway.rb', line 3 def config @config end |
#invoice ⇒ Object
Returns the value of attribute invoice.
27 28 29 |
# File 'lib/paymentrails/Gateway.rb', line 27 def invoice @invoice end |
#invoice_payment ⇒ Object
Returns the value of attribute invoice_payment.
28 29 30 |
# File 'lib/paymentrails/Gateway.rb', line 28 def invoice_payment @invoice_payment end |
#offline_payment ⇒ Object
Returns the value of attribute offline_payment.
24 25 26 |
# File 'lib/paymentrails/Gateway.rb', line 24 def offline_payment @offline_payment end |
#payment ⇒ Object
Returns the value of attribute payment.
18 19 20 |
# File 'lib/paymentrails/Gateway.rb', line 18 def payment @payment end |
#recipient ⇒ Object
Returns the value of attribute recipient.
9 10 11 |
# File 'lib/paymentrails/Gateway.rb', line 9 def recipient @recipient end |
#recipient_account ⇒ Object
Returns the value of attribute recipient_account.
12 13 14 |
# File 'lib/paymentrails/Gateway.rb', line 12 def recipient_account @recipient_account end |