Class: Koho::Client::Contracts
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
105
106
107
|
# File 'lib/koho.rb', line 105
def create params
post '/', contract: params
end
|
#find(id) ⇒ Object
101
102
103
|
# File 'lib/koho.rb', line 101
def find id
get "/#{id}"
end
|
#list ⇒ Object
97
98
99
|
# File 'lib/koho.rb', line 97
def list
get '/'
end
|
#update(id, params) ⇒ Object
109
110
111
|
# File 'lib/koho.rb', line 109
def update id, params
put "/#{id}", contract: params
end
|