class Bob::TimeOff

Public Class Methods

all_changed_since(since) click to toggle source
# File lib/bob/api/time_off.rb, line 5
def self.all_changed_since(since)
  response = get('timeoff/requests/changes', { since: since })['changes']
  TimeOffParser.new({ 'outs' => response }).events
end
find_for_employee(employee_id, request_id) click to toggle source
# File lib/bob/api/time_off.rb, line 15
def self.find_for_employee(employee_id, request_id)
  response = get("timeoff/employees/#{employee_id}/requests/#{request_id}")
  TimeOffParser.new(response).event
end
today() click to toggle source
# File lib/bob/api/time_off.rb, line 10
def self.today
  response = get('timeoff/outtoday')
  TimeOffParser.new(response).events
end