Skip to content

Instantly share code, notes, and snippets.

@superacidjax
Created August 16, 2012 15:38
Show Gist options
  • Save superacidjax/3371152 to your computer and use it in GitHub Desktop.
Save superacidjax/3371152 to your computer and use it in GitHub Desktop.
From: /Users/brian/Development/take_the_interview/take_the_interview/lib/xls_export.rb @ line 61 XlsExport#get_xls:
56: users.each do |user|
57: this_rating = all_criterion_ratings[user_interview.id][user.id][interview_criterion.id]
58: row.push this_rating ? this_rating : "-"
59: end
60: source = criterion_rating_nouser[user_interview.id][interview_criterion.id]
=> 61: binding.pry
62: sum = source.sum
63: row.push sum
64: row.push (sum.to_f / source.size)
65: current_row += 1
66: end
[1] pry(#<XlsExport>)> source
=> [5]
[2] pry(#<XlsExport>)> exit
From: /Users/brian/Development/take_the_interview/take_the_interview/lib/xls_export.rb @ line 61 XlsExport#get_xls:
56: users.each do |user|
57: this_rating = all_criterion_ratings[user_interview.id][user.id][interview_criterion.id]
58: row.push this_rating ? this_rating : "-"
59: end
60: source = criterion_rating_nouser[user_interview.id][interview_criterion.id]
=> 61: binding.pry
62: sum = source.sum
63: row.push sum
64: row.push (sum.to_f / source.size)
65: current_row += 1
66: end
[1] pry(#<XlsExport>)> source
=> [5]
[2] pry(#<XlsExport>)> exit
From: /Users/brian/Development/take_the_interview/take_the_interview/lib/xls_export.rb @ line 61 XlsExport#get_xls:
56: users.each do |user|
57: this_rating = all_criterion_ratings[user_interview.id][user.id][interview_criterion.id]
58: row.push this_rating ? this_rating : "-"
59: end
60: source = criterion_rating_nouser[user_interview.id][interview_criterion.id]
=> 61: binding.pry
62: sum = source.sum
63: row.push sum
64: row.push (sum.to_f / source.size)
65: current_row += 1
66: end
[1] pry(#<XlsExport>)> exit
From: /Users/brian/Development/take_the_interview/take_the_interview/lib/xls_export.rb @ line 61 XlsExport#get_xls:
56: users.each do |user|
57: this_rating = all_criterion_ratings[user_interview.id][user.id][interview_criterion.id]
58: row.push this_rating ? this_rating : "-"
59: end
60: source = criterion_rating_nouser[user_interview.id][interview_criterion.id]
=> 61: binding.pry
62: sum = source.sum
63: row.push sum
64: row.push (sum.to_f / source.size)
65: current_row += 1
66: end
[1] pry(#<XlsExport>)> source
=> [5]
[2] pry(#<XlsExport>)> exit
From: /Users/brian/Development/take_the_interview/take_the_interview/lib/xls_export.rb @ line 61 XlsExport#get_xls:
56: users.each do |user|
57: this_rating = all_criterion_ratings[user_interview.id][user.id][interview_criterion.id]
58: row.push this_rating ? this_rating : "-"
59: end
60: source = criterion_rating_nouser[user_interview.id][interview_criterion.id]
=> 61: binding.pry
62: sum = source.sum
63: row.push sum
64: row.push (sum.to_f / source.size)
65: current_row += 1
66: end
[1] pry(#<XlsExport>)> source
=> []
[2] pry(#<XlsExport>)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment