Sha256: ab08bd30450f4707a31981c2ae9ea8a6ca54127cc9a9356f72b9e1af64dc0558

Contents?: true

Size: 449 Bytes

Versions: 14

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module RedisWebManager
  class Connection < Base
    def host
      @host ||= connection[:host]
    end

    def port
      @port ||= connection[:port]
    end

    def db
      @db ||= connection[:db]
    end

    def id
      @id ||= connection[:id]
    end

    def location
      @location ||= connection[:location]
    end

    private

    def connection
      @connection ||= redis.connection
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.9 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.8 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.6 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.5 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.4 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.3 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.2 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.1 lib/redis_web_manager/connection.rb
redis_web_manager-0.3.0 lib/redis_web_manager/connection.rb
redis_web_manager-0.2.1 lib/redis_web_manager/connection.rb
redis_web_manager-0.2.0 lib/redis_web_manager/connection.rb
redis_web_manager-0.1.8 lib/redis_web_manager/connection.rb
redis_web_manager-0.1.6 lib/redis_web_manager/connection.rb