Class: Anoubis::CoreService

Inherits:
Object
  • Object
show all
Defined in:
app/services/anoubis/core_service.rb

Direct Known Subclasses

SessionService

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCoreService

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

#redisObject

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_prefixObject



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