Class: TransferZero::MandateStatus

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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