Module: EngivenAPI::Client::Customer
- Included in:
- EngivenAPI::Client
- Defined in:
- lib/engiven/resources/customer.rb
Instance Method Summary collapse
- #create_customer(options = {}) ⇒ Object
- #find_customer(id) ⇒ Object
- #list_customers(options = {}) ⇒ Object
- #remove_logo(id) ⇒ Object
- #update_customer(id, options = {}) ⇒ Object
- #upload_logo(id, options) ⇒ Object
Instance Method Details
#create_customer(options = {}) ⇒ Object
8 9 10 |
# File 'lib/engiven/resources/customer.rb', line 8 def create_customer( = {}) post('/customers', ) end |
#find_customer(id) ⇒ Object
12 13 14 |
# File 'lib/engiven/resources/customer.rb', line 12 def find_customer(id) get("/customers/#{id}") end |
#list_customers(options = {}) ⇒ Object
4 5 6 |
# File 'lib/engiven/resources/customer.rb', line 4 def list_customers( = {}) get('/customers', ) end |
#remove_logo(id) ⇒ Object
24 25 26 |
# File 'lib/engiven/resources/customer.rb', line 24 def remove_logo(id) post("/customers/#{id}/logo") end |
#update_customer(id, options = {}) ⇒ Object
16 17 18 |
# File 'lib/engiven/resources/customer.rb', line 16 def update_customer(id, = {}) post("/customers/#{id}", ) end |
#upload_logo(id, options) ⇒ Object
20 21 22 |
# File 'lib/engiven/resources/customer.rb', line 20 def upload_logo(id, ) post("/customers/#{id}/logo", ) end |