Module: Tictail::Api::Customer
- Included in:
- Client
- Defined in:
- lib/tictail/api/customer.rb
Instance Method Summary collapse
Instance Method Details
#get_customer(params) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/tictail/api/customer.rb', line 4 def get_customer params raise InvalidParams.new('No store id spacified') unless params[:store_id] customer_id = params[:customer_id] ? "/#{params[:customer_id]}" : '' response = get("/v1/stores/#{params[:store_id]}/customers" + customer_id, params.except(:store_id)) response.body end |