Method: FCS::HashRequest#update_command
- Defined in:
- lib/fcs/hash_request.rb
#update_command(method, *args, &block) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/fcs/hash_request.rb', line 20 def update_command(method, *args, &block) arg_string = args.map(&:to_s).join(' ') || '' # assume the first call here is the command type and value if @command_type.empty? @command_type = method.to_s @command_value = arg_string else @params[method.to_s] = arg_string end end |