Class: Feathr::Api::Cashouts

Inherits:
FeathrEndpoint show all
Defined in:
lib/feathr/api/cashouts.rb

Instance Attribute Summary

Attributes inherited from FeathrEndpoint

#client, #prepended_path

Instance Method Summary collapse

Methods inherited from FeathrEndpoint

api_path, define_all, define_create, define_destroy, define_find, define_update, feathr_endpoints, feathr_object, #initialize

Constructor Details

This class inherits a constructor from Feathr::Api::FeathrEndpoint

Instance Method Details

#availableObject



9
10
11
12
# File 'lib/feathr/api/cashouts.rb', line 9

def available
  url = api_path.gsub('cashouts/', 'cashout_available/')
  client.request(method: :get, path: url)
end

#fees(amount) ⇒ Object



14
15
16
17
18
# File 'lib/feathr/api/cashouts.rb', line 14

def fees(amount)
  url = api_path.gsub('cashouts/', 'cashout_available/')
  query = { amount: amount }
  client.request(method: :post, path: url, query: query)
end