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.
381 382 383 384 385 386 387 388 389 390 391 |
# File 'lib/accessgrid/console.rb', line 381 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.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def auth_method @auth_method end |
#cert_expires_at ⇒ Object (readonly)
Returns the value of attribute cert_expires_at.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def cert_expires_at @cert_expires_at end |
#client_cert ⇒ Object (readonly)
Returns the value of attribute client_cert.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def client_cert @client_cert end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def name @name end |
#private_key ⇒ Object (readonly)
Returns the value of attribute private_key.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def private_key @private_key end |
#subscribed_events ⇒ Object (readonly)
Returns the value of attribute subscribed_events.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def subscribed_events @subscribed_events end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
378 379 380 |
# File 'lib/accessgrid/console.rb', line 378 def url @url end |