Class: BrmClient::Gateway::Debug
- Inherits:
-
Object
- Object
- BrmClient::Gateway::Debug
- Defined in:
- lib/brm_client/gateway/debug.rb
Instance Method Summary collapse
- #disconnect ⇒ Object
-
#initialize(opts) ⇒ Debug
constructor
A new instance of Debug.
- #send_event(e) ⇒ Object
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
#disconnect ⇒ Object
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 |