Class: Patriarch::RedisInstruction

Inherits:
Struct
  • Object
show all
Defined in:
lib/patriarch/redis_instruction.rb,
lib/patriarch/redis_instruction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



2
3
4
# File 'lib/patriarch/redis_instruction.rb', line 2

def args
  @args
end

#daoObject

Returns the value of attribute dao

Returns:

  • (Object)

    the current value of dao



2
3
4
# File 'lib/patriarch/redis_instruction.rb', line 2

def dao
  @dao
end

#method_symObject

Returns the value of attribute method_sym

Returns:

  • (Object)

    the current value of method_sym



2
3
4
# File 'lib/patriarch/redis_instruction.rb', line 2

def method_sym
  @method_sym
end

Instance Method Details

#executeObject



4
5
6
# File 'lib/patriarch/redis_instruction.rb', line 4

def execute
  dao.send(method_sym,*args)
end