Method: Typhoeus::RemoteMethod#interpolate_path_with_arguments
- Defined in:
- lib/typhoeus/remote_method.rb
#interpolate_path_with_arguments(args) ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/typhoeus/remote_method.rb', line 67 def interpolate_path_with_arguments(args) interpolated_path = @path argument_names.each do |arg| interpolated_path = interpolated_path.gsub(":#{arg}", args[arg].to_s) end interpolated_path end |