Class: Anoubis::CoreService
- Inherits:
-
Object
- Object
- Anoubis::CoreService
- Defined in:
- app/services/anoubis/core_service.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize ⇒ CoreService
constructor
A new instance of CoreService.
- #redis_prefix ⇒ Object
Constructor Details
#initialize ⇒ CoreService
Returns a new instance of CoreService.
4 5 6 |
# File 'app/services/anoubis/core_service.rb', line 4 def initialize self.redis = Redis.new end |
Instance Attribute Details
#redis ⇒ Object
Returns the value of attribute redis.
2 3 4 |
# File 'app/services/anoubis/core_service.rb', line 2 def redis @redis end |
Instance Method Details
#redis_prefix ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/services/anoubis/core_service.rb', line 8 def redis_prefix begin value = Rails.configuration.redis_prefix rescue return '' end return value + ':' end |