Skip to content

Commit

Permalink
added notes
Browse files Browse the repository at this point in the history
  • Loading branch information
benwyrosdick committed Mar 29, 2008
1 parent 1a21fc3 commit db25b46
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 225 deletions.
6 changes: 5 additions & 1 deletion demo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
[:square, :thumbnail, :small, :medium, :large, :original].each do |size|
puts "#{size}: #{photo.url(size)}"
end
puts "comments: #{photo.comment_count}"
puts "comments: #{photo.comments.size}"
photo.comments.each do |comment|
intro = "#{comment.author_name} says - "
puts "#{intro}\"#{comment.comment.gsub("\n", "\n"+(" "*intro.length))}\""
end
puts "notes: #{photo.notes.size}"
photo.notes.each do |note|
puts "[#{note.x},#{note.y} ~ #{note.width}x#{note.height}] - \"#{note.note}\""
end
puts
puts
end
Loading

0 comments on commit db25b46

Please sign in to comment.