Class: SmartRecruiters::HiringTeamMemberRole
- Inherits:
-
Object
- Object
- SmartRecruiters::HiringTeamMemberRole
- Defined in:
- lib/smart_recruiters/models/hiring_team_member_role.rb
Constant Summary collapse
- HIRING_MANAGER =
'HIRING_MANAGER'.freeze
- INTERVIEW_TEAM =
'INTERVIEW_TEAM'.freeze
- RECRUITER =
'RECRUITER'.freeze
- EXECUTIVE =
'EXECUTIVE'.freeze
- COORDINATOR =
'COORDINATOR'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
16 17 18 19 20 |
# File 'lib/smart_recruiters/models/hiring_team_member_role.rb', line 16 def build_from_hash(value) constantValues = HiringTeamMemberRole.constants.select { |c| HiringTeamMemberRole::const_get(c) == value } raise "Invalid ENUM value #{value} for class #HiringTeamMemberRole" if constantValues.empty? value end |