Class: CanControlsGateway::RawEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/raw_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_node) ⇒ RawEvent

Returns a new instance of RawEvent.



12
13
14
15
16
17
# File 'lib/raw_event.rb', line 12

def initialize xml_node
  @xml_node   = REXML::Document.new(xml_node.to_s)
  @vector     = nil
  @event_type = nil
  parse_xml
end

Instance Attribute Details

#event_typeObject (readonly)

Returns the value of attribute event_type.



10
11
12
# File 'lib/raw_event.rb', line 10

def event_type
  @event_type
end

#vectorObject (readonly)

Returns the value of attribute vector.



10
11
12
# File 'lib/raw_event.rb', line 10

def vector
  @vector
end