Class: Event::Result
- Inherits:
-
Object
- Object
- Event::Result
- Defined in:
- lib/a-commons.rb
Instance Attribute Summary collapse
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(_sender, _args = nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(_sender, _args = nil) ⇒ Result
Returns a new instance of Result.
523 524 525 526 527 528 529 530 531 |
# File 'lib/a-commons.rb', line 523 def initialize(_sender, _args=nil) @sender = _sender if _args _args.each do |key, value| self.send(key+'=', value) end end @time = Time.new end |
Instance Attribute Details
#sender ⇒ Object (readonly)
Returns the value of attribute sender.
521 522 523 |
# File 'lib/a-commons.rb', line 521 def sender @sender end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
522 523 524 |
# File 'lib/a-commons.rb', line 522 def time @time end |