Class: Event

Inherits:
Object
  • Object
show all
Defined in:
lib/xify/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(author, message, **args) ⇒ Event

Returns a new instance of Event.



3
4
5
6
7
# File 'lib/xify/event.rb', line 3

def initialize(author, message, **args)
  self.author = author
  self.message = message
  self.args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



2
3
4
# File 'lib/xify/event.rb', line 2

def args
  @args
end

#authorObject

Returns the value of attribute author.



2
3
4
# File 'lib/xify/event.rb', line 2

def author
  @author
end

#messageObject

Returns the value of attribute message.



2
3
4
# File 'lib/xify/event.rb', line 2

def message
  @message
end