Class: Moov::Models::Components::UpdateWebhook

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/updatewebhook.rb

Overview

Request body for updating an existing webhook.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(url:, status:, event_types:, description:) ⇒ UpdateWebhook

Returns a new instance of UpdateWebhook.



25
26
27
28
29
30
# File 'lib/moov/models/components/updatewebhook.rb', line 25

def initialize(url:, status:, event_types:, description:)
  @url = url
  @status = status
  @event_types = event_types
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/updatewebhook.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @url == other.url
  return false unless @status == other.status
  return false unless @event_types == other.event_types
  return false unless @description == other.description
  true
end