Class: NounProjectApi::Configuration
- Inherits:
-
Object
- Object
- NounProjectApi::Configuration
- Defined in:
- lib/noun_project_api.rb
Overview
Main configuration class.
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
-
#public_domain ⇒ Object
Returns the value of attribute public_domain.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#cache ⇒ Object
Returns the value of attribute cache.
30 31 32 |
# File 'lib/noun_project_api.rb', line 30 def cache @cache end |
#cache_ttl ⇒ Object
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_domain ⇒ Object
Returns the value of attribute public_domain.
30 31 32 |
# File 'lib/noun_project_api.rb', line 30 def public_domain @public_domain end |