Class: Rerout::Models::ListWebhooksResult
- Inherits:
-
Object
- Object
- Rerout::Models::ListWebhooksResult
- Defined in:
- lib/rerout/models.rb
Overview
List of webhook endpoints plus every event type the server can deliver.
Instance Attribute Summary collapse
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
-
#event_types ⇒ Object
readonly
Returns the value of attribute event_types.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(endpoints:, event_types:) ⇒ ListWebhooksResult
constructor
A new instance of ListWebhooksResult.
- #to_h ⇒ Object
Constructor Details
#initialize(endpoints:, event_types:) ⇒ ListWebhooksResult
Returns a new instance of ListWebhooksResult.
388 389 390 391 392 |
# File 'lib/rerout/models.rb', line 388 def initialize(endpoints:, event_types:) @endpoints = endpoints.freeze @event_types = event_types.freeze freeze end |
Instance Attribute Details
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
386 387 388 |
# File 'lib/rerout/models.rb', line 386 def endpoints @endpoints end |
#event_types ⇒ Object (readonly)
Returns the value of attribute event_types.
386 387 388 |
# File 'lib/rerout/models.rb', line 386 def event_types @event_types end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
405 406 407 |
# File 'lib/rerout/models.rb', line 405 def ==(other) other.is_a?(ListWebhooksResult) && other.to_h == to_h end |
#hash ⇒ Object
410 411 412 |
# File 'lib/rerout/models.rb', line 410 def hash to_h.hash end |
#to_h ⇒ Object
401 402 403 |
# File 'lib/rerout/models.rb', line 401 def to_h { endpoints: endpoints.map(&:to_h), event_types: event_types } end |