Class: SmartRecruiters::CallbackRequestStatus
- Inherits:
-
Object
- Object
- SmartRecruiters::CallbackRequestStatus
- Defined in:
- lib/smart_recruiters/models/callback_request_status.rb
Constant Summary collapse
- SUCCESSFUL =
'successful'.freeze
- FAILED =
'failed'.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
13 14 15 16 17 |
# File 'lib/smart_recruiters/models/callback_request_status.rb', line 13 def build_from_hash(value) constantValues = CallbackRequestStatus.constants.select { |c| CallbackRequestStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #CallbackRequestStatus" if constantValues.empty? value end |