/x.rb
Created
August 6, 2015 16:01
Revisions
-
practicingruby created this gist
Aug 6, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ roster = Roster.new data = PeopleService.fetch(some_search_params) data.each do |person| if roster.names.count < 10 roster.names << person.name else raise "You can't have a roster with more than 10 people on it" end end roster.style = :colorized RosterPrintout.new(roster).generate_pdf("out.pdf")