Module: Flic::Client::Features::GetInfo
- Included in:
- Flic::Client
- Defined in:
- lib/flic/client/features/get_info.rb
Instance Method Summary collapse
Instance Method Details
#get_info(callback = Proc.new) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/flic/client/features/get_info.rb', line 16 def get_info(callback = Proc.new) @get_info_callbacks_semaphore.synchronize do @get_info_callbacks << callback end send_command Protocol::Commands::GetInfo.new end |
#initialize ⇒ Object
9 10 11 12 13 14 |
# File 'lib/flic/client/features/get_info.rb', line 9 def initialize(*) @get_info_callbacks_semaphore = Mutex.new @get_info_callbacks = [] super end |