Class: PeopleGroup::HRIS::BambooHR
- Defined in:
- lib/peoplegroup/hris/bamboo_hr.rb
Class Method Summary collapse
Methods inherited from HRTool
Class Method Details
.all ⇒ Object
10 11 12 13 14 |
# File 'lib/peoplegroup/hris/bamboo_hr.rb', line 10 def self.all @@fields ||= (Bamboozled::API::FieldCollection.all_names + client..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 |