Class: SmartRecruiters::JobApplicationStatus
- Inherits:
-
Object
- Object
- SmartRecruiters::JobApplicationStatus
- Defined in:
- lib/smart_recruiters/models/job_application_status.rb
Constant Summary collapse
- LEAD =
'LEAD'.freeze
- NEW =
'NEW'.freeze
- IN_REVIEW =
'IN_REVIEW'.freeze
- INTERVIEW =
'INTERVIEW'.freeze
- OFFERED =
'OFFERED'.freeze
- HIRED =
'HIRED'.freeze
- REJECTED =
'REJECTED'.freeze
- WITHDRAWN =
'WITHDRAWN'.freeze
- TRANSFERRED =
'TRANSFERRED'.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
20 21 22 23 24 |
# File 'lib/smart_recruiters/models/job_application_status.rb', line 20 def build_from_hash(value) constantValues = JobApplicationStatus.constants.select { |c| JobApplicationStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #JobApplicationStatus" if constantValues.empty? value end |