Module: Unforlogistics::Core::Locations
- Included in:
- Api
- Defined in:
- lib/unforlogistics/core/locations.rb
Instance Method Summary collapse
- #get_localities(filters = {}) ⇒ Object
- #get_locality(id) ⇒ Object
- #get_province(id) ⇒ Object
- #get_provinces(filters = {}) ⇒ Object
Instance Method Details
#get_localities(filters = {}) ⇒ Object
14 15 16 17 18 |
# 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) ⇒ Object
20 21 22 |
# File 'lib/unforlogistics/core/locations.rb', line 20 def get_locality(id) get_request("/localities/#{id}").body end |
#get_province(id) ⇒ Object
10 11 12 |
# File 'lib/unforlogistics/core/locations.rb', line 10 def get_province(id) get_request("/provinces/#{id}").body end |
#get_provinces(filters = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/unforlogistics/core/locations.rb', line 4 def get_provinces(filters={}) response = get_request('/provinces', filters) get_paging_response(response) end |