Skip to content

Commit

Permalink
Improve performance by calling for sheet list once (7-8x)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh McGowan committed May 28, 2009
1 parent 37a17bd commit 8ea3c21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/roo/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def initialize(spreadsheetkey,user=nil,password=nil)
@time_format = '%H:%M:%S'
@gs = GData::Spreadsheet.new(spreadsheetkey)
@gs.authenticate(user, password)
@sheetlist = @gs.sheetlist
#-- ----------------------------------------------------------------------
#-- TODO: Behandlung von Berechtigungen hier noch einbauen ???
#-- ----------------------------------------------------------------------
Expand All @@ -124,7 +125,7 @@ def initialize(spreadsheetkey,user=nil,password=nil)

# returns an array of sheet names in the spreadsheet
def sheets
return @gs.sheetlist
@sheetlist
end

def date?(string)
Expand Down

0 comments on commit 8ea3c21

Please sign in to comment.