Class: Bank

Inherits:
Base show all
Defined in:
lib/flutterwave_sdk/flutterwave_objects/bank.rb

Instance Attribute Summary

Attributes inherited from Base

#flutterwave_object

Instance Method Summary collapse

Methods inherited from Base

#check_passed_parameters, #delete_request, #get_request, #initialize, #post_request, #put_request

Constructor Details

This class inherits a constructor from Base

Instance Method Details

#get_all_banks(country) ⇒ Object



6
7
8
9
10
# File 'lib/flutterwave_sdk/flutterwave_objects/bank.rb', line 6

def get_all_banks(country)
    base_url = flutterwave_object.base_url
    response = get_request("#{base_url}/banks/#{country}")
    return response
end

#get_bank_branch(id) ⇒ Object



12
13
14
15
16
# File 'lib/flutterwave_sdk/flutterwave_objects/bank.rb', line 12

def get_bank_branch(id)
    base_url = flutterwave_object.base_url
    response = get_request("#{base_url}/banks/#{id}/branches")
    return response
end