Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from spawngrid/xml-data_type

Adds :data_type option to EventbriteClient init
  • Loading branch information...
commit 73f55862e44519d7ee59dca86135cce2bbabd64f 2 parents e64cbfa + 3eade15
ryan jarvinen authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.