Class: NounProjectApi::Configuration

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

Overview

Main configuration class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



32
33
34
35
36
# File 'lib/noun_project_api.rb', line 32

def initialize
  @public_domain = false
  @cache = ActiveSupport::Cache::NullStore.new
  @cache_ttl = 604800 # Week in seconds
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



30
31
32
# File 'lib/noun_project_api.rb', line 30

def cache
  @cache
end

#cache_ttlObject

Returns the value of attribute cache_ttl.



30
31
32
# File 'lib/noun_project_api.rb', line 30

def cache_ttl
  @cache_ttl
end

#public_domainObject

Returns the value of attribute public_domain.



30
31
32
# File 'lib/noun_project_api.rb', line 30

def public_domain
  @public_domain
end