module NgpVan::Client::Events

Public Instance Methods

create_event(body: {}) click to toggle source
# File lib/ngp_van/client/events.rb, line 6
def create_event(body: {})
  post(path: 'events', body: body)
end
create_event_shift(id:, body: {}) click to toggle source
# File lib/ngp_van/client/events.rb, line 10
def create_event_shift(id:, body: {})
  verify_id(id)
  post(path: "events/#{id}/shifts", body: body)
end
delete_event(id:) click to toggle source
# File lib/ngp_van/client/events.rb, line 29
def delete_event(id:)
  verify_id(id)
  delete(path: "events/#{id}")
end
event(id:, params: {}) click to toggle source
# File lib/ngp_van/client/events.rb, line 15
def event(id:, params: {})
  verify_id(id)
  get(path: "events/#{id}", params: params)
end
events(params: {}) click to toggle source
# File lib/ngp_van/client/events.rb, line 20
def events(params: {})
  get(path: 'events', params: params)
end
update_event(id:, body: {}) click to toggle source
# File lib/ngp_van/client/events.rb, line 24
def update_event(id:, body: {})
  verify_id(id)
  put(path: "events/#{id}", body: body)
end