Class: Gorynich::Configuration

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

Defined Under Namespace

Classes: NullStore

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
# File 'lib/gorynich/configuration.rb', line 18

def initialize
  @cache = NullStore.new
  @fetcher = nil
  @namespace = nil
  @cache_expiration = 30
  @rack_env_handler = nil
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



12
13
14
# File 'lib/gorynich/configuration.rb', line 12

def cache
  @cache
end

#cache_expirationObject

Returns the value of attribute cache_expiration.



12
13
14
# File 'lib/gorynich/configuration.rb', line 12

def cache_expiration
  @cache_expiration
end

#fetcherObject

Returns the value of attribute fetcher.



12
13
14
# File 'lib/gorynich/configuration.rb', line 12

def fetcher
  @fetcher
end

#namespaceObject

Returns the value of attribute namespace.



12
13
14
# File 'lib/gorynich/configuration.rb', line 12

def namespace
  @namespace
end

#rack_env_handlerObject

Returns the value of attribute rack_env_handler.



12
13
14
# File 'lib/gorynich/configuration.rb', line 12

def rack_env_handler
  @rack_env_handler
end