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.



256
257
258
259
260
261
262
263
264
# File 'lib/a-commons.rb', line 256

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.



254
255
256
# File 'lib/a-commons.rb', line 254

def sender
  @sender
end

#timeObject (readonly)

Returns the value of attribute time.



255
256
257
# File 'lib/a-commons.rb', line 255

def time
  @time
end