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