Permalink
Browse files

Adds :data_type option to EventbriteClient

  • Loading branch information...
1 parent e64cbfa commit 3eade15c4da21553fe284c25f6fed3ab1a6c4d14 @yrashk yrashk committed Jul 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/eventbrite-client.rb
View
@@ -5,7 +5,7 @@ class EventbriteClient
def initialize( auth_tokens )
@auth = {}
- @data_type = 'json'
+ @data_type = (auth_tokens.is_a?(Hash) and auth_tokens.include? :data_type) ? auth_tokens[:data_type] : 'json'
if auth_tokens.is_a? Hash
if auth_tokens.include? :access_token
# use oauth2 authentication tokens

0 comments on commit 3eade15

Please sign in to comment.