Class: Koho::Client::Projects
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
160
161
162
|
# File 'lib/koho.rb', line 160
def create params
post '/', customer: params
end
|
#destroy(id) ⇒ Object
168
169
170
|
# File 'lib/koho.rb', line 168
def destroy id
delete "/#{id}"
end
|
#find(id) ⇒ Object
152
153
154
|
# File 'lib/koho.rb', line 152
def find id
get "/#{id}"
end
|
#find_by_customer(customer_id) ⇒ Object
156
157
158
|
# File 'lib/koho.rb', line 156
def find_by_customer customer_id
get "/find_by_customer/#{customer_id}"
end
|
#list ⇒ Object
148
149
150
|
# File 'lib/koho.rb', line 148
def list
get '/'
end
|
#permitted_projects ⇒ Object
172
173
174
|
# File 'lib/koho.rb', line 172
def permitted_projects
get "/permitted_projects"
end
|
#update(id, params) ⇒ Object
164
165
166
|
# File 'lib/koho.rb', line 164
def update id, params
put "/#{id}", customer: params
end
|