Class: Redis::Pipeline
- Inherits:
-
Object
- Object
- Redis::Pipeline
- Defined in:
- lib/redis/pipeline.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize ⇒ Pipeline
constructor
A new instance of Pipeline.
Constructor Details
#initialize ⇒ Pipeline
Returns a new instance of Pipeline.
5 6 7 |
# File 'lib/redis/pipeline.rb', line 5 def initialize @commands = [] end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
3 4 5 |
# File 'lib/redis/pipeline.rb', line 3 def commands @commands end |
Instance Method Details
#call(*args) ⇒ Object
9 10 11 |
# File 'lib/redis/pipeline.rb', line 9 def call(*args) @commands << args end |