Class: Pepito::Database
- Inherits:
-
Redis::Namespace
- Object
- Redis::Namespace
- Pepito::Database
- Defined in:
- lib/pepito/database.rb
Overview
Database for pepito configurations
Instance Attribute Summary collapse
-
#redis ⇒ Object
readonly
Returns the value of attribute redis.
Instance Method Summary collapse
- #initialize ⇒ void constructor
Constructor Details
#initialize ⇒ void
9 10 11 12 |
# File 'lib/pepito/database.rb', line 9 def initialize @redis = Redis.new super(Pepito::REDIS_NAMESPACE, redis: @redis) end |
Instance Attribute Details
#redis ⇒ Object (readonly)
Returns the value of attribute redis.
6 7 8 |
# File 'lib/pepito/database.rb', line 6 def redis @redis end |