Skip to content

Commit

Permalink
Merge pull request ryanj#6 from spawngrid/xml-data_type
Browse files Browse the repository at this point in the history
Adds :data_type option to EventbriteClient init
  • Loading branch information
ryan jarvinen committed Jul 26, 2012
2 parents e64cbfa + 3eade15 commit 73f5586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eventbrite-client.rb
Expand Up @@ -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
Expand Down

0 comments on commit 73f5586

Please sign in to comment.