Method: CTM::Webhook#initialize

Defined in:
lib/ctm/webhook.rb

#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