Class: AccessGrid::Webhook

Inherits:
Object
  • Object
show all
Defined in:
lib/accessgrid/console.rb

Overview

Represents a webhook configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_methodObject (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_atObject (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_certObject (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_atObject (readonly)

Returns the value of attribute created_at.



378
379
380
# File 'lib/accessgrid/console.rb', line 378

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



378
379
380
# File 'lib/accessgrid/console.rb', line 378

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



378
379
380
# File 'lib/accessgrid/console.rb', line 378

def name
  @name
end

#private_keyObject (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_eventsObject (readonly)

Returns the value of attribute subscribed_events.



378
379
380
# File 'lib/accessgrid/console.rb', line 378

def subscribed_events
  @subscribed_events
end

#urlObject (readonly)

Returns the value of attribute url.



378
379
380
# File 'lib/accessgrid/console.rb', line 378

def url
  @url
end