Class: Event::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/a-commons.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_sender, _args = nil) ⇒ Result

Returns a new instance of Result.



603
604
605
606
607
608
609
610
611
# File 'lib/a-commons.rb', line 603

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

#senderObject (readonly)

Returns the value of attribute sender.



601
602
603
# File 'lib/a-commons.rb', line 601

def sender
  @sender
end

#timeObject (readonly)

Returns the value of attribute time.



602
603
604
# File 'lib/a-commons.rb', line 602

def time
  @time
end