Class: Percy::RedisClient
- Inherits:
-
Object
- Object
- Percy::RedisClient
- Defined in:
- lib/percy/redis_client.rb
Defined Under Namespace
Classes: InvalidConfiguration
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(given_options = {}) ⇒ RedisClient
constructor
A new instance of RedisClient.
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( = {}) = = .merge() @client = ::Redis.new() end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
9 10 11 |
# File 'lib/percy/redis_client.rb', line 9 def client @client end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/percy/redis_client.rb', line 10 def end |