class Revuelog
  attr_reader :time, :nick, :message

  def initialize(time, nick, message)
    @time    = time
    @nick    = nick
    @message = message
  end

  def to_hash
    revuehash = Revuelog.new(@time,@nick,@message)
    hash = {}
    revuehash.instance_variables.each {|var| hash[var.to_s.delete("@")] = revuehash.instance_variable_get(var) }
    p hash
  end
end


class Revuelog
  attr_reader :time, :nick, :message

  def initialize(time, nick, message)
    @time    = time
    @nick    = nick
    @message = message
  end

  def to_hash
     {"time" => @time, "nick" => @nick, "message" => @message}
  end
end


Update hash creation with very simple stuff
Update hash creation with very simple stuff
