Class: SmartRecruiters::ValidJobStatus
- Inherits:
-
Object
- Object
- SmartRecruiters::ValidJobStatus
- Defined in:
- lib/smart_recruiters/models/valid_job_status.rb
Constant Summary collapse
- CREATED =
'CREATED'.freeze
- SOURCING =
'SOURCING'.freeze
- FILLED =
'FILLED'.freeze
- INTERVIEW =
'INTERVIEW'.freeze
- OFFER =
'OFFER'.freeze
- CANCELLED =
'CANCELLED'.freeze
- ON_HOLD =
'ON_HOLD'.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
18 19 20 21 22 |
# File 'lib/smart_recruiters/models/valid_job_status.rb', line 18 def build_from_hash(value) constantValues = ValidJobStatus.constants.select { |c| ValidJobStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ValidJobStatus" if constantValues.empty? value end |