lib/google/freebusy.rb in google_calendar-0.5.1 vs lib/google/freebusy.rb in google_calendar-0.5.2
- old
+ new
@@ -20,15 +20,10 @@
# * :refresh_token => if a user has already given you access to their calendars, you can specify their refresh token here and you will be 'logged on' automatically (i.e. they don't need to authorize access again). OPTIONAL
#
# See Readme.rdoc or readme_code.rb for an explication on the OAuth2 authorization process.
#
def initialize(params={}, connection=nil)
- @connection = connection || Connection.new(
- :client_id => params[:client_id],
- :client_secret => params[:client_secret],
- :refresh_token => params[:refresh_token],
- :redirect_url => params[:redirect_url]
- )
+ @connection = connection || Connection.factory(params)
end
#
# Find the busy times of the supplied calendar IDs, within the boundaries
# of the supplied start_time and end_time