Module: Redis::Objects::InstanceMethods

Defined in:
lib/redis/objects.rb

Overview

Instance methods that appear in your class when you include Redis::Objects.

Instance Method Summary collapse

Instance Method Details

#redisObject

Map up one level to make modular extend/include approach sane


173
# File 'lib/redis/objects.rb', line 173

def redis()         self.class.redis end

#redis_field_key(name) ⇒ Object

:nodoc:


184
185
186
187
# File 'lib/redis/objects.rb', line 184

def redis_field_key(name) #:nodoc:
  id = send(self.class.redis_id_field)
  self.class.redis_field_key(name, id, self)
end

#redis_field_redis(name) ⇒ Object

:nodoc:


180
181
182
# File 'lib/redis/objects.rb', line 180

def redis_field_redis(name) #:nodoc:
  return self.class.redis_field_redis(name)
end

#redis_objectsObject


174
# File 'lib/redis/objects.rb', line 174

def redis_objects() self.class.redis_objects end

#redis_options(name) ⇒ Object

:nodoc:


176
177
178
# File 'lib/redis/objects.rb', line 176

def redis_options(name) #:nodoc:
  return self.class.redis_options(name)
end