Skip to content

Commit

Permalink
Updated the README for now, until Typhoeus fixes symboled keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalatero committed May 12, 2010
1 parent d6833a5 commit ab33a08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.markdown
Expand Up @@ -42,9 +42,9 @@ Example: Google JSON search
# a single +query+ parameter.
get(:search) do |query|
uri "http://ajax.googleapis.com/ajax/services/search/web"
params :v => VERSION,
:q => query,
:rsz => 'large'
params 'v' => VERSION,
'q' => query,
'rsz' => 'large'
handler do |response|
json = JSON.parse(response.body)

Expand Down Expand Up @@ -102,16 +102,16 @@ As well, if you set `params` or `headers` in the `defaults` block, any `params`

class GoogleJson < MonsterMash::Base
defaults do
params :api_key => 'fdas'
params 'api_key' => 'fdas'
end

# The full params hash will look like:
# :q => +query+,
# :v => '1.0',
# :api_key => 'fdas'
get(:search) do |query|
params :q => query,
:v => '1.0'
params 'q' => query,
'v' => '1.0'
uri "..."
handler do |response|
# ...
Expand Down

0 comments on commit ab33a08

Please sign in to comment.