Class: Moov::Models::Components::Webhook
- Inherits:
-
Object
- Object
- Moov::Models::Components::Webhook
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/webhook.rb
Overview
A configured webhook endpoint that receives event notifications.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(webhook_id:, url:, status:, event_types:, description:, created_on:, updated_on:, last_used_on: nil) ⇒ Webhook
constructor
A new instance of Webhook.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(webhook_id:, url:, status:, event_types:, description:, created_on:, updated_on:, last_used_on: nil) ⇒ Webhook
Returns a new instance of Webhook.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/moov/models/components/webhook.rb', line 33 def initialize(webhook_id:, url:, status:, event_types:, description:, created_on:, updated_on:, last_used_on: nil) @webhook_id = webhook_id @url = url @status = status @event_types = event_types @description = description @created_on = created_on @updated_on = updated_on @last_used_on = last_used_on end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/moov/models/components/webhook.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @webhook_id == other.webhook_id 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 return false unless @created_on == other.created_on return false unless @updated_on == other.updated_on return false unless @last_used_on == other.last_used_on true end |