Method: Motion::Channel#process_motion

Defined in:
lib/motion/channel.rb

#process_motion(data) ⇒ Object



48
49
50
51
52
53
# File 'lib/motion/channel.rb', line 48

def process_motion(data)
  motion, raw_event = data.values_at("name", "event")

  component_connection.process_motion(motion, Event.from_raw(raw_event))
  synchronize
end