Class: Feathr::Api::Invoice

Inherits:
FeathrObject show all
Defined in:
lib/feathr/api/invoice.rb

Instance Attribute Summary

Attributes inherited from FeathrObject

#data, #id

Attributes inherited from FeathrEndpoint

#client, #prepended_path

Instance Method Summary collapse

Methods inherited from FeathrObject

#as_json, #full_path, #initialize, nested, #path

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::FeathrObject

Instance Method Details

#initiate_debit!Object



7
8
9
10
# File 'lib/feathr/api/invoice.rb', line 7

def initiate_debit!
  url = path + '/initiate_debit/'
  client.request(method: :post, path: url)
end