module RelationalRedisMapper::UtilityMethods
Public Instance Methods
==(other)
click to toggle source
# File lib/relational_redis_mapper/utility_methods.rb, line 8 def ==(other) self.to_hash == other.to_hash end
dup()
click to toggle source
Calls superclass method
# File lib/relational_redis_mapper/utility_methods.rb, line 18 def dup dup = super; dup.id = nil; dup end
klass()
click to toggle source
# File lib/relational_redis_mapper/utility_methods.rb, line 4 def klass self.class end
to_hash()
click to toggle source
# File lib/relational_redis_mapper/utility_methods.rb, line 12 def to_hash instance_variables.each_with_object({}) do |var, hash| hash[var] = instance_variable_get(var) end end