Class: Kombo::Models::Shared::SyncFinishedWebhookPayloadData

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kombo/models/shared/syncfinishedwebhookpayload_data.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(sync_id:, sync_state:, sync_started_at:, sync_ended_at:, sync_duration_seconds:, integration_id:, integration_tool:, integration_category:, end_user:, log_url:) ⇒ SyncFinishedWebhookPayloadData

Returns a new instance of SyncFinishedWebhookPayloadData.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/kombo/models/shared/syncfinishedwebhookpayload_data.rb', line 37

def initialize(sync_id:, sync_state:, sync_started_at:, sync_ended_at:, sync_duration_seconds:, integration_id:, integration_tool:, integration_category:, end_user:, log_url:)
  @sync_id = sync_id
  @sync_state = sync_state
  @sync_started_at = sync_started_at
  @sync_ended_at = sync_ended_at
  @sync_duration_seconds = sync_duration_seconds
  @integration_id = integration_id
  @integration_tool = integration_tool
  @integration_category = integration_category
  @end_user = end_user
  @log_url = log_url
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/kombo/models/shared/syncfinishedwebhookpayload_data.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @sync_id == other.sync_id
  return false unless @sync_state == other.sync_state
  return false unless @sync_started_at == other.sync_started_at
  return false unless @sync_ended_at == other.sync_ended_at
  return false unless @sync_duration_seconds == other.sync_duration_seconds
  return false unless @integration_id == other.integration_id
  return false unless @integration_tool == other.integration_tool
  return false unless @integration_category == other.integration_category
  return false unless @end_user == other.end_user
  return false unless @log_url == other.log_url
  true
end