Class: Koho::Client::WorkSessions
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, #delete, #get, #inbound_invoices, #info, #initialize, #invoice_terms, #invoices, #post, #project_tasks, #projects, #put, #work_sessions
Constructor Details
This class inherits a constructor from Koho::Client
Instance Method Details
#create(params) ⇒ Object
192
193
194
|
# File 'lib/koho.rb', line 192
def create params
post '/', work_session: params
end
|
#destroy(id) ⇒ Object
200
201
202
|
# File 'lib/koho.rb', line 200
def destroy id
delete "/#{id}"
end
|
#find(id) ⇒ Object
188
189
190
|
# File 'lib/koho.rb', line 188
def find id
get "/#{id}"
end
|
#list ⇒ Object
184
185
186
|
# File 'lib/koho.rb', line 184
def list
get '/'
end
|
#update(id, params) ⇒ Object
196
197
198
|
# File 'lib/koho.rb', line 196
def update id, params
put "/#{id}", work_session: params
end
|