Class: TransferZero::MandateStatus
- Inherits:
-
Object
- Object
- TransferZero::MandateStatus
- Defined in:
- lib/transferzero-sdk/models/mandate_status.rb
Constant Summary collapse
- PENDING =
"pending".freeze
- NOTIFIED =
"notified".freeze
- SIGNED =
"signed".freeze
- FAILED =
"failed".freeze
- BYPASSED =
"bypassed".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
27 28 29 30 31 |
# File 'lib/transferzero-sdk/models/mandate_status.rb', line 27 def build_from_hash(value) constantValues = MandateStatus.constants.select { |c| MandateStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #MandateStatus" if constantValues.empty? && !value.empty? value end |