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.



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

Returns the value of attribute created_at.



356
357
358
# File 'lib/accessgrid/console.rb', line 356

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



356
357
358
# File 'lib/accessgrid/console.rb', line 356

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



356
357
358
# File 'lib/accessgrid/console.rb', line 356

def name
  @name
end

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

Returns the value of attribute subscribed_events.



356
357
358
# File 'lib/accessgrid/console.rb', line 356

def subscribed_events
  @subscribed_events
end

#urlObject (readonly)

Returns the value of attribute url.



356
357
358
# File 'lib/accessgrid/console.rb', line 356

def url
  @url
end