Class: AccessGrid::Webhook
- Inherits:
-
Object
- Object
- AccessGrid::Webhook
- Defined in:
- lib/accessgrid/console.rb
Overview
Represents a webhook configuration.
Instance Attribute Summary collapse
-
#auth_method ⇒ Object
readonly
Returns the value of attribute auth_method.
-
#cert_expires_at ⇒ Object
readonly
Returns the value of attribute cert_expires_at.
-
#client_cert ⇒ Object
readonly
Returns the value of attribute client_cert.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#private_key ⇒ Object
readonly
Returns the value of attribute private_key.
-
#subscribed_events ⇒ Object
readonly
Returns the value of attribute subscribed_events.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ Webhook
constructor
A new instance of Webhook.
Constructor Details
#initialize(data) ⇒ Webhook
Returns a new instance of Webhook.
359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/accessgrid/console.rb', line 359 def initialize(data) @id = data['id'] @name = data['name'] @url = data['url'] @auth_method = data['auth_method'] @subscribed_events = data['subscribed_events'] @created_at = data['created_at'] @private_key = data['private_key'] @client_cert = data['client_cert'] @cert_expires_at = data['cert_expires_at'] end |
Instance Attribute Details
#auth_method ⇒ Object (readonly)
Returns the value of attribute auth_method.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def auth_method @auth_method end |
#cert_expires_at ⇒ Object (readonly)
Returns the value of attribute cert_expires_at.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def cert_expires_at @cert_expires_at end |
#client_cert ⇒ Object (readonly)
Returns the value of attribute client_cert.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def client_cert @client_cert end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def name @name end |
#private_key ⇒ Object (readonly)
Returns the value of attribute private_key.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def private_key @private_key end |
#subscribed_events ⇒ Object (readonly)
Returns the value of attribute subscribed_events.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def subscribed_events @subscribed_events end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
356 357 358 |
# File 'lib/accessgrid/console.rb', line 356 def url @url end |