Class: Koho::Client::Customers
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, #put
Constructor Details
This class inherits a constructor from Koho::Client
Instance Method Details
#create(params) ⇒ Object
127
128
129
|
# File 'lib/koho.rb', line 127
def create params
post '/', customer: params
end
|
#destroy(id) ⇒ Object
135
136
137
|
# File 'lib/koho.rb', line 135
def destroy id
delete "/#{id}"
end
|
#find(id) ⇒ Object
123
124
125
|
# File 'lib/koho.rb', line 123
def find id
get "/#{id}"
end
|
#list ⇒ Object
119
120
121
|
# File 'lib/koho.rb', line 119
def list
get '/'
end
|
#update(id, params) ⇒ Object
131
132
133
|
# File 'lib/koho.rb', line 131
def update id, params
put "/#{id}", customer: params
end
|