Class: Bluecap::NullHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/bluecap/handlers/null_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ NullHandler

Initialize a NullHandler.



7
8
9
# File 'lib/bluecap/handlers/null_handler.rb', line 7

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/bluecap/handlers/null_handler.rb', line 4

def data
  @data
end

Instance Method Details

#handleObject

Catch the handle message.

Returns nothing.



14
15
16
# File 'lib/bluecap/handlers/null_handler.rb', line 14

def handle
  Bluecap.log "NullHandler received message, contents: #{@data}"
end