module NgpVan::Client::Locations

Public Instance Methods

create_location(body: {}) click to toggle source
# File lib/ngp_van/client/locations.rb, line 19
def create_location(body: {})
  post(path: 'locations', body: body)
end
delete_location(id:) click to toggle source
# File lib/ngp_van/client/locations.rb, line 23
def delete_location(id:)
  verify_id(id)
  delete(path: "locations/#{id}")
end
find_or_create_location(body: {}) click to toggle source
# File lib/ngp_van/client/locations.rb, line 15
def find_or_create_location(body: {})
  post(path: 'locations/findOrCreate', body: body)
end
location(id:, params: {}) click to toggle source
# File lib/ngp_van/client/locations.rb, line 10
def location(id:, params: {})
  verify_id(id)
  get(path: "locations/#{id}", params: params)
end
locations(params: {}) click to toggle source
# File lib/ngp_van/client/locations.rb, line 6
def locations(params: {})
  get(path: 'locations', params: params)
end