webmock

https://github.com/bblimke/webmock

Ruby

Library for stubbing and setting expectations on HTTP requests in Ruby.

WebMock::Util::QueryMapper.values_to_query

Sets the query component for this URI from a Hash object.
This method produces a query string using the :subscript notation.
An empty Hash will result in a nil query.

Source | Google | Stack overflow

Edit

git clone [email protected]:bblimke/webmock.git

cd webmock

open lib/webmock/util/query_mapper.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-WebMock--Util--QueryMapper-values_to_query-for-pr


# Commit to git

git add lib/webmock/util/query_mapper.rbgit commit -m "better docs for WebMock::Util::QueryMapper.values_to_query"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-WebMock--Util--QueryMapper-values_to_query-for-pr

hub pull-request


# Celebrate!