Module: QVO::Customers
Instance Method Summary collapse
- #create(data) ⇒ Object
- #delete(customer_id) ⇒ Object
- #get(customer_id) ⇒ Object
- #list ⇒ Object
- #update(customer_id, data) ⇒ Object
Instance Method Details
#create(data) ⇒ Object
5 6 7 |
# File 'lib/qvo/customers.rb', line 5 def create(data) QVO.post "/customers", data end |
#delete(customer_id) ⇒ Object
17 18 19 |
# File 'lib/qvo/customers.rb', line 17 def delete(customer_id) QVO.delete "/customers/#{customer_id}" end |
#get(customer_id) ⇒ Object
9 10 11 |
# File 'lib/qvo/customers.rb', line 9 def get(customer_id) QVO.get "/customers/#{customer_id}" end |
#list ⇒ Object
21 22 23 |
# File 'lib/qvo/customers.rb', line 21 def list QVO.get "/customers" end |
#update(customer_id, data) ⇒ Object
13 14 15 |
# File 'lib/qvo/customers.rb', line 13 def update(customer_id, data) QVO.put "/customers/#{customer_id}", data end |