Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds :data_type option to EventbriteClient

  • Loading branch information...
commit 3eade15c4da21553fe284c25f6fed3ab1a6c4d14 1 parent e64cbfa
Yurii Rashkovskii yrashk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/eventbrite-client.rb
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.