Class: Lomic::Event
- Inherits:
-
Object
- Object
- Lomic::Event
- Defined in:
- lib/lomic/Event.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#rule_number ⇒ Object
Returns the value of attribute rule_number.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Event
constructor
A new instance of Event.
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
#block ⇒ Object
Returns the value of attribute block.
5 6 7 |
# File 'lib/lomic/Event.rb', line 5 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/lomic/Event.rb', line 4 def name @name end |
#priority ⇒ Object
Returns the value of attribute priority.
4 5 6 |
# File 'lib/lomic/Event.rb', line 4 def priority @priority end |
#rule_number ⇒ Object
Returns the value of attribute rule_number.
4 5 6 |
# File 'lib/lomic/Event.rb', line 4 def rule_number @rule_number end |