Class: Settlements

Inherits:
Base
  • Object
show all
Defined in:
lib/flutterwave_sdk/flutterwave_objects/settlements.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_settlement(id) ⇒ Object



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

def get_settlement(id)
    base_url = flutterwave_object.base_url 
    response = get_request("#{base_url}/settlements/#{id}") 
    return response
end

#get_settlementsObject



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

def get_settlements
    base_url = flutterwave_object.base_url 
    response = get_request("#{base_url}/settlements") 
    return response
end