Skip to content

Instantly share code, notes, and snippets.

@Dysp
Last active June 15, 2016 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dysp/e99fb71f3835426aeb9a8dcfbfc51237 to your computer and use it in GitHub Desktop.
Save Dysp/e99fb71f3835426aeb9a8dcfbfc51237 to your computer and use it in GitHub Desktop.
def retrieve_data(sheets)
array = get_values(sheets)
p array
end
def get_values(sheets)
sheets.each do |s|
puts "Working..."
s.each do |row| unless row.nil?
row.cells.map do |cell|
cell.value.class unless cell.nil?
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment