Permalink
Browse files

expose relative paths

  • Loading branch information...
lparry committed Jan 13, 2014
1 parent 57398b1 commit 9b6d598774aecb4c77469007b406c855f748c670
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/flickr_offline_gallery/photo.rb
@@ -30,10 +30,6 @@ def img_filename
@path_manager.filename_for_photo(@id, :jpg)
end
- def html_filename
- "#{@id}.html"
- end
-
def full_jpg_path
@path_manager.full_path_for(@id, :jpg)
end
@@ -42,6 +38,13 @@ def full_html_path
@path_manager.full_path_for(@id, :html)
end
+ def relative_jpg_path
+ @path_manager.relative_path_for(@id, :jpg)
+ end
+
+ def relative_html_path
+ @path_manager.relative_path_for(@id, :html)
+ end
def sizes
@size ||= PhotoSizes.new(raw_sizes.to_a)

0 comments on commit 9b6d598

Please sign in to comment.