Class: Summoner::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/summoner/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/summoner/configuration.rb', line 5

def initialize
  @cache_enabled = true
  @cache_namespace = 'summoner'
  @cache_expires_in = 1.hour
end

Instance Attribute Details

#cache_enabledObject

Returns the value of attribute cache_enabled.



3
4
5
# File 'lib/summoner/configuration.rb', line 3

def cache_enabled
  @cache_enabled
end

#cache_expires_inObject

Returns the value of attribute cache_expires_in.



3
4
5
# File 'lib/summoner/configuration.rb', line 3

def cache_expires_in
  @cache_expires_in
end

#cache_namespaceObject

Returns the value of attribute cache_namespace.



3
4
5
# File 'lib/summoner/configuration.rb', line 3

def cache_namespace
  @cache_namespace
end