Class: Notifo::IntegrationStatus
- Inherits:
-
Object
- Object
- Notifo::IntegrationStatus
- Defined in:
- lib/notifo/models/integration_status.rb
Constant Summary collapse
- VERIFIED =
'Verified'.freeze
- VERIFICATION_FAILED =
'VerificationFailed'.freeze
- PENDING =
'Pending'.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
23 24 25 26 27 |
# File 'lib/notifo/models/integration_status.rb', line 23 def build_from_hash(value) constantValues = IntegrationStatus.constants.select { |c| IntegrationStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #IntegrationStatus" if constantValues.empty? value end |