Class: Howkast::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/howkast/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
# File 'lib/howkast/configuration.rb', line 11

def initialize
  @cache_timeout  = 600
  @cache_location = '/tmp/howkast/cache'
  @cache_store    = 'file'
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



6
7
8
# File 'lib/howkast/configuration.rb', line 6

def api_key
  @api_key
end

#cache_locationObject

Returns the value of attribute cache_location.



8
9
10
# File 'lib/howkast/configuration.rb', line 8

def cache_location
  @cache_location
end

#cache_storeObject

Returns the value of attribute cache_store.



9
10
11
# File 'lib/howkast/configuration.rb', line 9

def cache_store
  @cache_store
end

#cache_timeoutObject

Returns the value of attribute cache_timeout.



7
8
9
# File 'lib/howkast/configuration.rb', line 7

def cache_timeout
  @cache_timeout
end