Class: SyncteraRubySdk::EventTypeWildcard
- Inherits:
-
Object
- Object
- SyncteraRubySdk::EventTypeWildcard
- 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
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
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
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
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 |