Class: WebHookDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/definitions/web_hook_definition.rb

Overview

web hook definition as generated by DSL

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/definitions/web_hook_definition.rb', line 5

def id
  @id
end

#methodObject

Returns the value of attribute method.



5
6
7
# File 'lib/definitions/web_hook_definition.rb', line 5

def method
  @method
end

#startObject

Returns the value of attribute start.



5
6
7
# File 'lib/definitions/web_hook_definition.rb', line 5

def start
  @start
end

Instance Method Details

#to_hashObject



7
8
9
10
11
12
# File 'lib/definitions/web_hook_definition.rb', line 7

def to_hash
  {
    id: @id,
    method: @method
  }
end