lib/ellen/message.rb in ellen-0.1.2 vs lib/ellen/message.rb in ellen-0.1.3
- old
+ new
@@ -1,12 +1,12 @@
module Ellen
class Message
- attr_reader :body, :command, :match_data, :source
+ attr_reader :body, :match_data, :from, :to
def initialize(options)
@body = options[:body]
- @source = options[:source]
- @command = options[:command]
+ @from = options[:from]
+ @to = options[:to]
end
def match(pattern)
@match_data = pattern.match(body)
end