Class: Koho::Client::Invoices
Constant Summary
Constants inherited
from Koho::Client
API_BASE_URL
Instance Attribute Summary
Attributes inherited from Koho::Client
#company_id, #token
Instance Method Summary
collapse
#contracts, #customers, #get, #info, #initialize, #invoices, #post, #put
Constructor Details
This class inherits a constructor from Koho::Client
Instance Method Details
#create(params) ⇒ Object
57
58
59
|
# File 'lib/koho.rb', line 57
def create params
post '/', invoice: params
end
|
#find(id) ⇒ Object
53
54
55
|
# File 'lib/koho.rb', line 53
def find id
get "/#{id}"
end
|
#list ⇒ Object
49
50
51
|
# File 'lib/koho.rb', line 49
def list
get '/'
end
|
#update(id, params) ⇒ Object
61
62
63
|
# File 'lib/koho.rb', line 61
def update id, params
put "/#{id}", invoice: params
end
|