Class: BrmClient::Gateway::Debug

Inherits:
Object
  • Object
show all
Defined in:
lib/brm_client/gateway/debug.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Debug

Returns a new instance of Debug.



4
5
6
# File 'lib/brm_client/gateway/debug.rb', line 4

def initialize opts
  @logger = opts[:logger]
end

Instance Method Details

#disconnectObject



8
9
# File 'lib/brm_client/gateway/debug.rb', line 8

def disconnect
end

#send_event(e) ⇒ Object



11
12
13
# File 'lib/brm_client/gateway/debug.rb', line 11

def send_event e
  @logger.info "# BRM Event : #{e.inspect}" unless @logger.nil?
end