Class: Starling::Services::CustomerService
- Inherits:
-
BaseService
- Object
- BaseService
- Starling::Services::CustomerService
- Defined in:
- lib/starling/services/customer_service.rb
Overview
A service for accessing the Customer API
Instance Method Summary collapse
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Starling::Services::BaseService
Instance Method Details
#get(params: {}, headers: {}) ⇒ Resources::CustomerResource
12 13 14 15 16 |
# File 'lib/starling/services/customer_service.rb', line 12 def get(params: {}, headers: {}) response = api_service.make_request(:get, '/customers', params: params, headers: headers) resource.new(response: response) end |