Class: Infrataster::Resources::RedisResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Infrataster::Resources::RedisResource
- Defined in:
- lib/infrataster/resources/redis_resource.rb
Constant Summary collapse
- Error =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize(query, options = {}) ⇒ RedisResource
constructor
A new instance of RedisResource.
- #to_s ⇒ Object
Constructor Details
#initialize(query, options = {}) ⇒ RedisResource
12 13 14 15 |
# File 'lib/infrataster/resources/redis_resource.rb', line 12 def initialize(query, ={}) @query = query @redis = nil end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
9 10 11 |
# File 'lib/infrataster/resources/redis_resource.rb', line 9 def query @query end |
#redis ⇒ Object
Returns the value of attribute redis.
10 11 12 |
# File 'lib/infrataster/resources/redis_resource.rb', line 10 def redis @redis end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/infrataster/resources/redis_resource.rb', line 17 def to_s "Redis : \"#{@query}\"" end |