Class: FinchAPI::Models::CompanyEvent

Inherits:
BaseWebhookEvent show all
Defined in:
lib/finch-api/models/company_event.rb

Defined Under Namespace

Modules: EventType

Instance Attribute Summary collapse

Attributes inherited from BaseWebhookEvent

#account_id, #company_id, #connection_id

Instance Method Summary collapse

Constructor Details

#initialize(data: nil, event_type: nil) ⇒ CompanyEvent

Returns a new instance of CompanyEvent.

Parameters:



4
# File 'lib/finch-api/models/company_event.rb', line 4

def initialize(data: nil, event_type: nil, **) = super

Instance Attribute Details

#dataHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


9
# File 'lib/finch-api/models/company_event.rb', line 9

optional :data, FinchAPI::HashOf[FinchAPI::Unknown], nil?: true

#event_typeSymbol, ...



14
# File 'lib/finch-api/models/company_event.rb', line 14

optional :event_type, enum: -> { FinchAPI::Models::CompanyEvent::EventType }