Class: FinchAPI::Models::JobCompletionEvent

Inherits:
BaseWebhookEvent show all
Defined in:
lib/finch_api/models/job_completion_event.rb

Defined Under Namespace

Modules: EventType Classes: Data

Instance Attribute Summary collapse

Attributes inherited from BaseWebhookEvent

#account_id, #company_id, #connection_id

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(job_id: , job_url: ) ⇒ Object

Parameters:

  • job_id (String) (defaults to: )

    The id of the job which has completed.

  • job_url (String) (defaults to: )

    The url to query the result of the job.



# File 'lib/finch_api/models/job_completion_event.rb', line 33

Instance Attribute Details

#dataFinchAPI::Models::JobCompletionEvent::Data?



9
# File 'lib/finch_api/models/job_completion_event.rb', line 9

optional :data, -> { FinchAPI::JobCompletionEvent::Data }

#event_typeSymbol, ...



14
# File 'lib/finch_api/models/job_completion_event.rb', line 14

optional :event_type, enum: -> { FinchAPI::JobCompletionEvent::EventType }