Class: DocuSign_Maestro::EventTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/docusign_maestro/models/event_types.rb

Constant Summary collapse

ENVELOPE_SENT =
'envelope-sent'.freeze
ENVELOPE_DELIVERED =
'envelope-delivered'.freeze
ENVELOPE_COMPLETED =
'envelope-completed'.freeze
ENVELOPE_DECLINED =
'envelope-declined'.freeze
ENVELOPE_VOIDED =
'envelope-voided'.freeze
ENVELOPE_CREATED =
'envelope-created'.freeze
ENVELOPE_RESENT =
'envelope-resent'.freeze
ENVELOPE_CORRECTED =
'envelope-corrected'.freeze
ENVELOPE_PURGE =
'envelope-purge'.freeze
ENVELOPE_DELETED =
'envelope-deleted'.freeze
ENVELOPE_DISCARD =
'envelope-discard'.freeze
DELIVERY_FAILED =
'Delivery Failed'.freeze
AUTHENTICATION_FAILED =
'Authentication Failed'.freeze
SENT =
'Sent'.freeze
DELIVERED =
'Delivered'.freeze
SIGNED =
'Signed'.freeze
COMPLETED =
'Completed'.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

[View source]

38
39
40
41
42
# File 'lib/docusign_maestro/models/event_types.rb', line 38

def build_from_hash(value)
  constantValues = EventTypes.constants.select { |c| EventTypes::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #EventTypes" if constantValues.empty?
  value
end