Sha256: cd4aad865f4e5d704cd53e532eec56bc50b468dced819d16eda56c07c8d71ff0

Contents?: true

Size: 220 Bytes

Versions: 4

Compression:

Stored size: 220 Bytes

Contents

class BackendConnection
  cattr_accessor :host, :port, :current_database

  def self.setup
    yield(self) if block_given?
  end

  def self.build(opts = {})
    Backend.new(opts.merge(host: host, port: port))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_monitor-0.3.3 lib/engine/app/lib/backend_connection.rb
redis_monitor-0.3.2 lib/engine/app/lib/backend_connection.rb
redis_monitor-0.3 lib/engine/app/lib/backend_connection.rb
redis_monitor-0.2.1 lib/engine/app/lib/backend_connection.rb