Module: Estated

Defined in:
lib/estated.rb,
lib/estated/client.rb,
lib/estated/config.rb,
lib/estated/version.rb,
lib/estated/request_cache.rb

Defined Under Namespace

Classes: Client, Config, RequestCache

Constant Summary collapse

VERSION =
"0.4.1"

Class Method Summary collapse

Class Method Details

.configObject



7
8
9
# File 'lib/estated.rb', line 7

def self.config
  @config ||= Config.new
end

.config=(config) ⇒ Object



11
12
13
# File 'lib/estated.rb', line 11

def self.config=(config)
  @config = config
end

.configure {|config| ... } ⇒ Object

Yields:



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

def self.configure
  yield(config)
end

.rootObject



19
20
21
# File 'lib/estated.rb', line 19

def self.root
  File.expand_path('../..', __FILE__)
end