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.
-
#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.
30 31 32 33 |
# File 'lib/noun-project-api.rb', line 30 def initialize @public_domain = false @cache = ActiveSupport::Cache::NullStore.new end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
28 29 30 |
# File 'lib/noun-project-api.rb', line 28 def cache @cache end |
#public_domain ⇒ Object
Returns the value of attribute public_domain.
28 29 30 |
# File 'lib/noun-project-api.rb', line 28 def public_domain @public_domain end |