Module: Campi

Extended by:
ActiveSupport::Autoload
Defined in:
lib/campi.rb,
lib/campi/client.rb,
lib/campi/version.rb

Defined Under Namespace

Classes: Cache, Client, Configuration

Constant Summary collapse

VERSION =
'0.0.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cacheObject

Returns the value of attribute cache.



12
13
14
# File 'lib/campi.rb', line 12

def cache
  @cache
end

.configurationObject

Returns the value of attribute configuration.



12
13
14
# File 'lib/campi.rb', line 12

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



15
16
17
18
# File 'lib/campi.rb', line 15

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.configure_cache {|cache| ... } ⇒ Object

Yields:



20
21
22
23
# File 'lib/campi.rb', line 20

def self.configure_cache
  self.cache ||= Cache.new
  yield(cache)
end