module Unforlogistics::Core::Locations

Public Instance Methods

get_localities(filters={}) click to toggle source
# File lib/unforlogistics/core/locations.rb, line 14
def get_localities(filters={})
  response = get_request('/localities', filters)

  get_paging_response(response)
end
get_locality(id) click to toggle source
# File lib/unforlogistics/core/locations.rb, line 20
def get_locality(id)
  get_request("/localities/#{id}").body
end
get_province(id) click to toggle source
# File lib/unforlogistics/core/locations.rb, line 10
def get_province(id)
  get_request("/provinces/#{id}").body
end
get_provinces(filters={}) click to toggle source
# File lib/unforlogistics/core/locations.rb, line 4
def get_provinces(filters={})
  response = get_request('/provinces', filters)

  get_paging_response(response)
end