```ruby
class Revuelog
  attr_reader :time, :nick, :message

  def initialize(time, nick, message)
    @time    = time
    @nick    = nick
    @message = message
    #@revueobjt = Struct.new(:time, :nick, :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

  # def self.dbadd(revueobj)

  #  self
  # end

  # private

  # def revuedb
  #   client = MongoClient.new
  #   db     = client['revue-db']
  #   coll   = db['revue-collection']

  # end
end

```

Add hash creation feature, need feedback
user
```ruby
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

```
assistant