Module: WhenIWork::Client::Shifts
- Included in:
- WhenIWork::Client
- Defined in:
- lib/wheniwork/client/shifts.rb
Instance Method Summary collapse
- #positions(params = {}, options = {}) ⇒ Object
- #shift(shift_id, params = {}, options = {}) ⇒ Object
- #shifts(params = {}, options = {}) ⇒ Object
Instance Method Details
#positions(params = {}, options = {}) ⇒ Object
4 5 6 |
# File 'lib/wheniwork/client/shifts.rb', line 4 def positions(params = {}, = {}) get 'positions', params, .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 = {}, = {}) get "shifts/#{shift_id}", params, end |
#shifts(params = {}, options = {}) ⇒ Object
9 10 11 |
# File 'lib/wheniwork/client/shifts.rb', line 9 def shifts(params = {}, = {}) get 'shifts', params, .merge(key: 'wheniwork_shifts') end |