Class: PeopleGroup::HRIS::TeamMembers
- Inherits:
-
Object
- Object
- PeopleGroup::HRIS::TeamMembers
- Defined in:
- lib/peoplegroup/hris/team_members.rb
Class Method Summary collapse
Class Method Details
.active ⇒ Object
10 11 12 |
# File 'lib/peoplegroup/hris/team_members.rb', line 10 def self.active all.select { |team_member| team_member.active? } end |
.active_and_current ⇒ Object
14 15 16 17 |
# File 'lib/peoplegroup/hris/team_members.rb', line 14 def self.active_and_current today = Date.current all.select { |team_member| team_member.active? && team_member.start_date <= today } end |
.all ⇒ Object
6 7 8 |
# File 'lib/peoplegroup/hris/team_members.rb', line 6 def self.all @@all ||= hr_tool.all.map! { |data| hr_tool.map_to_team_member(data) } end |