Class: PeopleGroup::HRIS::BambooHR

Inherits:
HRTool
  • Object
show all
Defined in:
lib/peoplegroup/hris/bamboo_hr.rb

Class Method Summary collapse

Methods inherited from HRTool

all_active

Class Method Details

.allObject



10
11
12
13
14
# File 'lib/peoplegroup/hris/bamboo_hr.rb', line 10

def self.all
  @@fields ||= (Bamboozled::API::FieldCollection.all_names + client.meta.fields.map { |f| f['alias'] }).compact.uniq
  @@fields.delete('flsaCode') # temp fix for problems with BambooHR
  @@all ||= client.report.custom(@@fields, 'JSON').reject { |employee| employee['lastName'] == 'Test-Gitlab' }
end

.map_to_team_member(data) ⇒ Object



16
17
18
# File 'lib/peoplegroup/hris/bamboo_hr.rb', line 16

def self.map_to_team_member(data)
  PeopleGroup::HRIS::Wrappers::BambooTeamMember.new(data)
end