Skip to content

Commit

Permalink
Update spreadsheet.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Mar 16, 2015
1 parent 98252d1 commit 2b5f8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sheet_mapper/spreadsheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Spreadsheet
# SheetMapper::Worksheet.new(:mapper => SomeMapper, :key => 'sheet_key', :login => 'user', :password => 'pass')
def initialize(options={})
@mapper = options[:mapper]
@session = ::GoogleDrive.login(options[:login], options[:password])
@session = ::GoogleDriveV0.login(options[:login], options[:password])
@spreadsheet = find_spreadsheet(options[:key], options[:url], options[:title])
end

Expand All @@ -27,4 +27,4 @@ def find_spreadsheet(key, url, title)
end

end
end
end

0 comments on commit 2b5f8ee

Please sign in to comment.