Class: RedisRPC::FunctionCall

Inherits:
Object
  • Object
show all
Defined in:
lib/redisrpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



40
41
42
# File 'lib/redisrpc.rb', line 40

def args
  @args
end

#methodObject (readonly)

Returns the value of attribute method.



39
40
41
# File 'lib/redisrpc.rb', line 39

def method
  @method
end