Class: Unit::Resource::AtmLocationResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Unit::Resource::AtmLocationResource
- Defined in:
- lib/unit/api_resources/atm_location_resource.rb
Class Method Summary collapse
-
.list(params = nil) ⇒ Unit::Response
Get a list of ATM locations by calling Unit’s API.
Methods inherited from BaseResource
file_response_handler, response_handler
Class Method Details
.list(params = nil) ⇒ Unit::Response
Get a list of ATM locations by calling Unit’s API
14 15 16 17 |
# File 'lib/unit/api_resources/atm_location_resource.rb', line 14 def list(params = nil) response = HttpHelper.get("#{api_url}/atm-locations", params: params.to_hash, headers: headers) response_handler(response) end |