Class: HackyHAL::DeviceControllers::Base

Inherits:
Object
  • Object
show all
Includes:
Options
Defined in:
lib/hacky_hal/device_controllers/base.rb

Direct Known Subclasses

GenericSerialPort, GenericSsh, Roku, YamahaAvReceiver

Instance Attribute Summary

Attributes included from Options

#options

Instance Method Summary collapse

Methods included from Options

#[], #initialize

Instance Method Details

#log(message, level = :info) ⇒ Object



9
10
11
# File 'lib/hacky_hal/device_controllers/base.rb', line 9

def log(message, level = :info)
  Log.instance.send(level, "#{options[:name]}: #{message}")
end