Class: Kredis::Types::Proxying
- Inherits:
-
Object
- Object
- Kredis::Types::Proxying
- Defined in:
- lib/kredis/types/proxying.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#redis ⇒ Object
Returns the value of attribute redis.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(redis, key, **options) ⇒ Proxying
constructor
A new instance of Proxying.
Constructor Details
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/kredis/types/proxying.rb', line 4 def key @key end |
#proxy ⇒ Object
Returns the value of attribute proxy.
4 5 6 |
# File 'lib/kredis/types/proxying.rb', line 4 def proxy @proxy end |
#redis ⇒ Object
Returns the value of attribute redis.
4 5 6 |
# File 'lib/kredis/types/proxying.rb', line 4 def redis @redis end |
Class Method Details
.proxying(*commands) ⇒ Object
6 7 8 |
# File 'lib/kredis/types/proxying.rb', line 6 def self.(*commands) delegate *commands, to: :proxy end |