class Myo::Client
Public Class Methods
new(socket_url)
click to toggle source
# File lib/myo/client.rb, line 67 def initialize(socket_url) @socket_url = socket_url @chamber = Myo::Chamber.new(@socket_url) end
Public Instance Methods
on(event_name, &block)
click to toggle source
# File lib/myo/client.rb, line 72 def on(event_name, &block) @chamber.callbacks_[event_name.to_sym] = block end
start()
click to toggle source
# File lib/myo/client.rb, line 76 def start @chamber.start end