Skip to content
Browse files

Merge pull request #6 from spawngrid/xml-data_type

Adds :data_type option to EventbriteClient init
  • Loading branch information...
2 parents e64cbfa + 3eade15 commit 73f55862e44519d7ee59dca86135cce2bbabd64f ryan jarvinen committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/eventbrite-client.rb
View
2 lib/eventbrite-client.rb
@@ -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 73f5586

Please sign in to comment.
Something went wrong with that request. Please try again.