Class: OsCtld::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, opts) ⇒ Event

Returns a new instance of Event



5
6
7
8
# File 'lib/osctld/event.rb', line 5

def initialize(type, opts)
  @type = type
  @opts = opts
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts



3
4
5
# File 'lib/osctld/event.rb', line 3

def opts
  @opts
end

#typeObject (readonly)

Returns the value of attribute type



3
4
5
# File 'lib/osctld/event.rb', line 3

def type
  @type
end