Class: RedisRPC::FunctionCall
- Inherits:
-
Object
- Object
- RedisRPC::FunctionCall
- Defined in:
- lib/redisrpc.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
Constructor Details
#initialize(args = {}) ⇒ FunctionCall
Returns a new instance of FunctionCall.
34 35 36 37 |
# File 'lib/redisrpc.rb', line 34 def initialize(args={}) @method = args['name'].to_sym @args = args['args'] end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
40 41 42 |
# File 'lib/redisrpc.rb', line 40 def args @args end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
39 40 41 |
# File 'lib/redisrpc.rb', line 39 def method @method end |