Class: ListenerDefinition

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

Overview

Listener definition as defined by DSL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeListenerDefinition

Returns a new instance of ListenerDefinition.



7
8
9
# File 'lib/definitions/listener_definition.rb', line 7

def initialize
  @web_hooks = {}
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#startObject

Returns the value of attribute start.



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

def start
  @start
end

#stopObject

Returns the value of attribute stop.



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

def stop
  @stop
end

#web_hooksObject

Returns the value of attribute web_hooks.



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

def web_hooks
  @web_hooks
end

Instance Method Details

#to_hashObject



11
12
13
14
15
# File 'lib/definitions/listener_definition.rb', line 11

def to_hash
  {
    id: @id
  }
end