Class: Unit::Resource::AtmLocationResource

Inherits:
BaseResource show all
Defined in:
lib/unit/api_resources/atm_location_resource.rb

Class Method Summary collapse

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

Parameters:

  • params (ListByCoordinatesParams, ListByAddressParams, ListByPostalCodeParams) (defaults to: nil)

    The parameters to use to get a list of ATM locations

Returns:

  • (Unit::Response)

    The response from 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