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.



346
347
348
349
350
351
352
353
354
# File 'lib/a-commons.rb', line 346

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.



344
345
346
# File 'lib/a-commons.rb', line 344

def sender
  @sender
end

#timeObject (readonly)

Returns the value of attribute time.



345
346
347
# File 'lib/a-commons.rb', line 345

def time
  @time
end