module Flic::Protocol::Events

A namespace module for all of the event classes

Constants

EVENT_CLASS_OPCODE
OPCODE_EVENT_CLASS

Public Class Methods

event_class_for_opcode(opcode) click to toggle source

Finds the event class for a given opcode @param opcode [Integer] @return [Class]

# File lib/flic/protocol/events.rb, line 55
def self.event_class_for_opcode(opcode)
  OPCODE_EVENT_CLASS[opcode]
end
opcode_for_event_class(event_class) click to toggle source

Finds the opcode for a given event class @param event_class [Class] @return [Integer]

# File lib/flic/protocol/events.rb, line 62
def self.opcode_for_event_class(event_class)
  EVENT_CLASS_OPCODE[event_class]
end