class DataSpork::Importer::GoogleSpreadsheet
Public Instance Methods
google()
click to toggle source
# File lib/data_spork/google_spreadsheet.rb, line 28 def google options[:google] end
google?()
click to toggle source
# File lib/data_spork/google_spreadsheet.rb, line 24 def google? [ :google, :drive ].include?(input_type) end
google_password()
click to toggle source
# File lib/data_spork/google_spreadsheet.rb, line 36 def google_password google[:password] end
google_user()
click to toggle source
# File lib/data_spork/google_spreadsheet.rb, line 32 def google_user google[:user] end
init_options(options)
click to toggle source
Calls superclass method
DataSpork::Importer#init_options
# File lib/data_spork/google_spreadsheet.rb, line 6 def init_options(options) super unless @options[:google].present? @options[:google] = { user: ENV['google_user'], password: ENV['google_pwd'] } end end
reader()
click to toggle source
Calls superclass method
DataSpork::Importer#reader
# File lib/data_spork/google_spreadsheet.rb, line 16 def reader if google? Reader.new(self) else super end end
spreadsheet_title()
click to toggle source
# File lib/data_spork/google_spreadsheet.rb, line 40 def spreadsheet_title google[:spreadsheet_title] end
worksheet_title()
click to toggle source
# File lib/data_spork/google_spreadsheet.rb, line 44 def worksheet_title google[:worksheet_title] end