Class: FuseClient::WebhookType

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

Instance Method Summary collapse

Class Method Details

.all_varsObject



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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