Class: Flutterwave::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merchant_key, api_key) ⇒ Client

Returns a new instance of Client.



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/flutterwave/client.rb', line 17

def initialize(merchant_key, api_key)
  @merchant_key = merchant_key
  @api_key = api_key

  @bvn = Flutterwave::BVN.new(self)
  @bin = Flutterwave::BIN.new(self)
  @ip = Flutterwave::IP.new(self)
  @bank = Flutterwave::BankAPI.new(self)
  @card = Flutterwave::Card.new(self)
  @account = Flutterwave::Account.new(self)
  @ach = Flutterwave::ACH.new(self)
  @pay = Flutterwave::Pay.new(self)
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



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

def 
  @account
end

#achObject

Returns the value of attribute ach.



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

def ach
  @ach
end

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#bankObject

Returns the value of attribute bank.



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

def bank
  @bank
end

#binObject

Returns the value of attribute bin.



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

def bin
  @bin
end

#bvnObject

Returns the value of attribute bvn.



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

def bvn
  @bvn
end

#cardObject

Returns the value of attribute card.



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

def card
  @card
end

#ipObject

Returns the value of attribute ip.



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

def ip
  @ip
end

#merchant_keyObject

Returns the value of attribute merchant_key.



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

def merchant_key
  @merchant_key
end

#payObject

Returns the value of attribute pay.



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

def pay
  @pay
end