Module: WhenIWork::Client::Shifts

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

Instance Method Summary collapse

Instance Method Details

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



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

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

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



13
14
15
# File 'lib/wheniwork/client/shifts.rb', line 13

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

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



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

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