Class: SyncteraRubySdk::EventTypeWildcard

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/event_type_wildcard.rb

Constant Summary collapse

ACCOUNT =
"ACCOUNT.*".freeze
APPLICATION =
"APPLICATION.*".freeze
BUSINESS =
"BUSINESS.*".freeze
CARD =
"CARD.*".freeze
CASE =
"CASE.*".freeze
CASH_PICKUP =
"CASH_PICKUP.*".freeze
CUSTOMER =
"CUSTOMER.*".freeze
EXTERNAL_CARD =
"EXTERNAL_CARD.*".freeze
EXTERNAL_CARD_TRANSFER =
"EXTERNAL_CARD_TRANSFER.*".freeze
INTEREST =
"INTEREST.*".freeze
INTERNAL_TRANSFER =
"INTERNAL_TRANSFER.*".freeze
NOTE =
"NOTE.*".freeze
PAYMENT_SCHEDULE =
"PAYMENT_SCHEDULE.*".freeze
PERSON =
"PERSON.*".freeze
STATEMENT =
"STATEMENT.*".freeze
TRANSACTION =
"TRANSACTION.*".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



35
36
37
# File 'lib/synctera_ruby_sdk/models/event_type_wildcard.rb', line 35

def self.all_vars
  @all_vars ||= [ACCOUNT, APPLICATION, BUSINESS, CARD, CASE, CASH_PICKUP, CUSTOMER, EXTERNAL_CARD, EXTERNAL_CARD_TRANSFER, INTEREST, INTERNAL_TRANSFER, NOTE, PAYMENT_SCHEDULE, PERSON, STATEMENT, TRANSACTION].freeze
end

.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



42
43
44
# File 'lib/synctera_ruby_sdk/models/event_type_wildcard.rb', line 42

def self.build_from_hash(value)
  new.build_from_hash(value)
end

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



49
50
51
52
# File 'lib/synctera_ruby_sdk/models/event_type_wildcard.rb', line 49

def build_from_hash(value)
  return value if EventTypeWildcard.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #EventTypeWildcard"
end