Class: FuseClient::WebhookType
- Inherits:
-
Object
- Object
- FuseClient::WebhookType
- Defined in:
- lib/fuse_client/models/webhook_type.rb
Constant Summary collapse
- FINANCIAL_CONNECTION_SYNC_DATA =
"financial_connection.sync_data".freeze
- FINANCIAL_CONNECTION_DISCONNECTED =
"financial_connection.disconnected".freeze
- FINANCIAL_CONNECTION_FINISHED =
"financial_connection.finished".freeze
- TRANSACTIONS_UPDATES =
"transactions.updates".freeze
- ASSETS_REPORT_READY =
"assets.report_ready".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
24 25 26 |
# File 'lib/fuse_client/models/webhook_type.rb', line 24 def self.all_vars @all_vars ||= [FINANCIAL_CONNECTION_SYNC_DATA, FINANCIAL_CONNECTION_DISCONNECTED, FINANCIAL_CONNECTION_FINISHED, TRANSACTIONS_UPDATES, ASSETS_REPORT_READY].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/fuse_client/models/webhook_type.rb', line 31 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
38 39 40 41 |
# File 'lib/fuse_client/models/webhook_type.rb', line 38 def build_from_hash(value) return value if WebhookType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #WebhookType" end |