Class: AspireBudget::Worksheets::BackendData

Inherits:
WorksheetBase show all
Defined in:
lib/aspire_budget/worksheets/backend_data.rb

Constant Summary collapse

WS_TITLE =
'BackendData'

Instance Method Summary collapse

Methods inherited from WorksheetBase

#dirty?, #initialize, instance

Constructor Details

This class inherits a constructor from AspireBudget::Worksheets::WorksheetBase

Instance Method Details

#versionString

Returns the spreadsheet version.

Returns:

  • (String)

    the spreadsheet version



11
12
13
14
# File 'lib/aspire_budget/worksheets/backend_data.rb', line 11

def version
  version_column = ws.rows[0].index { |header| header.include?('Update') }
  ws.rows[1][version_column]
end