class Scruber::Mongo::Configuration

Attributes

clients[RW]
options[RW]

Public Class Methods

new() click to toggle source
# File lib/scruber/mongo/configuration.rb, line 6
def initialize
  @clients = {}
  @options = {}
end

Public Instance Methods

configured?(client_name=:default) click to toggle source
# File lib/scruber/mongo/configuration.rb, line 17
def configured?(client_name=:default)
  @clients.key?(client_name)
end
load!(path) click to toggle source
# File lib/scruber/mongo/configuration.rb, line 11
def load!(path)
  config = YAML.load_file(path).with_indifferent_access
  @clients = config['clients']
  @options = config['options']
end