Permalink
Browse files

Initial release

  • Loading branch information...
0 parents commit 557d3d11e1b3bc6f45d096e3dd74d5082e714bb6 @netmask committed Oct 7, 2011
Showing with 406 additions and 0 deletions.
  1. +9 −0 README
  2. +11 −0 test.rb
  3. +333 −0 video_data.csv
  4. +53 −0 video_parser.rb
@@ -0,0 +1,9 @@
+# Installation #
+I test the code on the following Rubies
+Ruby 1.8.7 p249
+Ruby 1.9.2 p290
+JRuby 1.6.4
+
+# Workflow #
+
+
@@ -0,0 +1,11 @@
+require './video_parser'
+
+video_data = VideoData.new
+video_data.load_csv('video_data.csv')
+
+for video in video_data.all
+ as_tags = video.tags.empty? ? "." : ", additionally this video should have a list of tags #{video.tags.join(', ')}"
+ as_celebrity = video.celebrity ? "and his celebrity is #{video.celebrity}": ""
+ puts "Video #{video.number}: #{video.name} have a date of #{video.date}#{as_celebrity}#{as_tags}"
+end
+
Oops, something went wrong.

0 comments on commit 557d3d1

Please sign in to comment.