Class: Lomic::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Event

Returns a new instance of Event.


7
8
9
# File 'lib/lomic/Event.rb', line 7

def initialize(attrs)
  attrs.each {|key,val| instance_variable_set "@#{key}", val }
end

Instance Attribute Details

#blockObject

Returns the value of attribute block


5
6
7
# File 'lib/lomic/Event.rb', line 5

def block
  @block
end

#nameObject

Returns the value of attribute name


4
5
6
# File 'lib/lomic/Event.rb', line 4

def name
  @name
end

#priorityObject

Returns the value of attribute priority


4
5
6
# File 'lib/lomic/Event.rb', line 4

def priority
  @priority
end

#rule_numberObject

Returns the value of attribute rule_number


4
5
6
# File 'lib/lomic/Event.rb', line 4

def rule_number
  @rule_number
end