Class: CanControlsGateway::RawEvent
- Inherits:
-
Object
- Object
- CanControlsGateway::RawEvent
- Defined in:
- lib/raw_event.rb
Instance Attribute Summary collapse
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
-
#vector ⇒ Object
readonly
Returns the value of attribute vector.
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ RawEvent
constructor
A new instance of RawEvent.
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_type ⇒ Object (readonly)
Returns the value of attribute event_type.
10 11 12 |
# File 'lib/raw_event.rb', line 10 def event_type @event_type end |
#vector ⇒ Object (readonly)
Returns the value of attribute vector.
10 11 12 |
# File 'lib/raw_event.rb', line 10 def vector @vector end |