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.



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

#cacheObject

Returns the value of attribute cache.



28
29
30
# File 'lib/noun-project-api.rb', line 28

def cache
  @cache
end

#public_domainObject

Returns the value of attribute public_domain.



28
29
30
# File 'lib/noun-project-api.rb', line 28

def public_domain
  @public_domain
end