Skip to content

Commit

Permalink
ruby 1.8 hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsync committed Oct 1, 2011
1 parent bed93ba commit 70a9226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eventbrite-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize( auth_tokens )
def method_request( method, params )
#merge auth params into our request querystring
querystring = @auth.merge( params.is_a?(Hash) ? params : {} )
resp = self.class.get("/#{@data_type}/#{method.to_s}",{query: querystring})
resp = self.class.get("/#{@data_type}/#{method.to_s}",{:query => querystring})
if resp['error']
raise RuntimeError, resp['error']['error_message'], caller[1..-1]
end
Expand Down

1 comment on commit 70a9226

@ryanj
Copy link

@ryanj ryanj commented on 70a9226 Jul 12, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've merged this change into my gem. Feel free to let me know if you spot any other opportunities to improve this client!

Please sign in to comment.