Class: WorkOS::UpdateWebhookEndpoint
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateWebhookEndpoint
- Defined in:
- lib/workos/webhooks/update_webhook_endpoint.rb
Constant Summary collapse
- HASH_ATTRS =
{ endpoint_url: :endpoint_url, status: :status, events: :events }.freeze
Instance Attribute Summary collapse
-
#endpoint_url ⇒ Object
Returns the value of attribute endpoint_url.
-
#events ⇒ Object
Returns the value of attribute events.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateWebhookEndpoint
constructor
A new instance of UpdateWebhookEndpoint.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ UpdateWebhookEndpoint
Returns a new instance of UpdateWebhookEndpoint.
18 19 20 21 22 23 |
# File 'lib/workos/webhooks/update_webhook_endpoint.rb', line 18 def initialize(json) hash = self.class.normalize(json) @endpoint_url = hash[:endpoint_url] @status = hash[:status] @events = hash[:events] || [] end |
Instance Attribute Details
#endpoint_url ⇒ Object
Returns the value of attribute endpoint_url.
13 14 15 |
# File 'lib/workos/webhooks/update_webhook_endpoint.rb', line 13 def endpoint_url @endpoint_url end |
#events ⇒ Object
Returns the value of attribute events.
13 14 15 |
# File 'lib/workos/webhooks/update_webhook_endpoint.rb', line 13 def events @events end |
#status ⇒ Object
Returns the value of attribute status.
13 14 15 |
# File 'lib/workos/webhooks/update_webhook_endpoint.rb', line 13 def status @status end |