Class: SmartRecruiters::CandidateAttendeeStatusValue
- Inherits:
-
Object
- Object
- SmartRecruiters::CandidateAttendeeStatusValue
- Defined in:
- lib/smart_recruiters/models/candidate_attendee_status_value.rb
Constant Summary collapse
- ACCEPTED =
'accepted'.freeze
- DECLINED =
'declined'.freeze
- PENDING =
'pending'.freeze
- TENTATIVE =
'tentative'.freeze
- NULL =
'null'.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/candidate_attendee_status_value.rb', line 16 def build_from_hash(value) constantValues = CandidateAttendeeStatusValue.constants.select { |c| CandidateAttendeeStatusValue::const_get(c) == value } raise "Invalid ENUM value #{value} for class #CandidateAttendeeStatusValue" if constantValues.empty? value end |