Module: Seoshop::Customer
- Included in:
- Client
- Defined in:
- lib/seoshop-api/api/customer.rb
Instance Method Summary collapse
- #get_customer(customer_id) ⇒ Object
- #get_customers(params = {}) ⇒ Object
- #get_customers_count ⇒ Object
Instance Method Details
#get_customer(customer_id) ⇒ Object
13 14 15 16 |
# File 'lib/seoshop-api/api/customer.rb', line 13 def get_customer(customer_id) response = get("#{@shop_language}/customers/#{customer_id}.json") response.body ? response.body['customer'] : false end |
#get_customers(params = {}) ⇒ Object
3 4 5 6 |
# File 'lib/seoshop-api/api/customer.rb', line 3 def get_customers(params = {}) response = get("#{@shop_language}/customers.json", params) response.body ? response.body['customers'] : false end |
#get_customers_count ⇒ Object
8 9 10 11 |
# File 'lib/seoshop-api/api/customer.rb', line 8 def get_customers_count response = get("#{@shop_language}/customers/count.json") response.body ? response.body['count'] : false end |