Class: CTM::Webhook

Inherits:
Base
  • Object
show all
Defined in:
lib/ctm/webhook.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#account_id, #token

Instance Method Summary collapse

Methods inherited from Base

create, #release!, #save

Constructor Details

#initialize(data, token = nil) ⇒ Webhook

Returns a new instance of Webhook.



6
7
8
9
10
11
12
# File 'lib/ctm/webhook.rb', line 6

def initialize(data, token=nil)
  super(data, token)
  @id                = data['id']
  @weburl            = data['weburl']
  @with_resource_url = data['with_resource_url']
  @position          = data['position']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/ctm/webhook.rb', line 3

def id
  @id
end

#positionObject

Returns the value of attribute position.



4
5
6
# File 'lib/ctm/webhook.rb', line 4

def position
  @position
end

#weburlObject

Returns the value of attribute weburl.



4
5
6
# File 'lib/ctm/webhook.rb', line 4

def weburl
  @weburl
end

#with_resource_urlObject

Returns the value of attribute with_resource_url.



4
5
6
# File 'lib/ctm/webhook.rb', line 4

def with_resource_url
  @with_resource_url
end