Class: Firmata::Event
- Inherits:
-
Object
- Object
- Firmata::Event
- Defined in:
- lib/firmata/event.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, *data) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(name, *data) ⇒ Event
Returns a new instance of Event.
5 6 7 8 |
# File 'lib/firmata/event.rb', line 5 def initialize(name, *data) @name = name.to_sym @data = *data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/firmata/event.rb', line 3 def data @data end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/firmata/event.rb', line 3 def name @name end |