Class: Percy::RedisClient

Inherits:
Object
  • Object
show all
Defined in:
lib/percy/redis_client.rb

Defined Under Namespace

Classes: InvalidConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(given_options = {}) ⇒ RedisClient

Returns a new instance of RedisClient.



12
13
14
15
16
# File 'lib/percy/redis_client.rb', line 12

def initialize(given_options = {})
  @provided_options = given_options
  @options = ssl_options.merge(given_options)
  @client = ::Redis.new(options)
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



9
10
11
# File 'lib/percy/redis_client.rb', line 9

def client
  @client
end

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/percy/redis_client.rb', line 10

def options
  @options
end