Module: Journey

Defined in:
lib/journey.rb,
lib/journey/version.rb,
lib/journey/resource.rb,
lib/journey/configurable.rb,
lib/journey/configuration.rb

Defined Under Namespace

Modules: VERSION Classes: Configuration, Oplog, Resource

Class Method Summary collapse

Class Method Details

.configurationObject



5
6
7
# File 'lib/journey/configurable.rb', line 5

def self.configuration
  @@configuration ||= Configuration.new
end

.configuration=(configuration) ⇒ Object



9
10
11
12
# File 'lib/journey/configurable.rb', line 9

def self.configuration=(configuration)
  @@configuration = configuration
  @@configuration.propagate!
end

.configure(attributes = {}) {|configuration| ... } ⇒ Object

Yields:



14
15
16
17
18
# File 'lib/journey/configurable.rb', line 14

def self.configure(attributes = {})
  configuration = Configuration.new(attributes)
  yield(configuration) if block_given?
  self.configuration = configuration
end

.loggerObject



25
26
27
# File 'lib/journey/configurable.rb', line 25

def self.logger
  @@logger
end

.logger=(logger) ⇒ Object



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

def self.logger=(logger)
  @@logger = logger
  ActiveResource::Base.logger = logger
end