Class: ListenerDefinition
- Inherits:
-
Object
- Object
- ListenerDefinition
- Defined in:
- lib/definitions/listener_definition.rb
Overview
Listener definition as defined by DSL
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#start ⇒ Object
Returns the value of attribute start.
-
#stop ⇒ Object
Returns the value of attribute stop.
-
#web_hooks ⇒ Object
Returns the value of attribute web_hooks.
Instance Method Summary collapse
-
#initialize ⇒ ListenerDefinition
constructor
A new instance of ListenerDefinition.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ ListenerDefinition
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
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/definitions/listener_definition.rb', line 5 def id @id end |
#start ⇒ Object
Returns the value of attribute start.
5 6 7 |
# File 'lib/definitions/listener_definition.rb', line 5 def start @start end |
#stop ⇒ Object
Returns the value of attribute stop.
5 6 7 |
# File 'lib/definitions/listener_definition.rb', line 5 def stop @stop end |
#web_hooks ⇒ Object
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_hash ⇒ Object
11 12 13 14 15 |
# File 'lib/definitions/listener_definition.rb', line 11 def to_hash { id: @id } end |