Module: WhenIWork::Client::Shifts

Included in:
WhenIWork::Client
Defined in:
lib/wheniwork/client/shifts.rb

Instance Method Summary collapse

Instance Method Details

#shift(shift_id, params = {}, options = {}) ⇒ Object



9
10
11
# File 'lib/wheniwork/client/shifts.rb', line 9

def shift(shift_id, params = {}, options = {})
  get "shifts/#{shift_id}", params, options
end

#shifts(params = {}, options = {}) ⇒ Object



5
6
7
# File 'lib/wheniwork/client/shifts.rb', line 5

def shifts(params = {}, options = {})
  get 'shifts', params, options.merge(key: 'wheniwork_shifts')
end