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