class TumblrThemer::Post::Photo
Public Instance Methods
exif()
click to toggle source
# File lib/tumblr-themer/post/photo.rb, line 10 def exif data['photos'].first['exif'] || {} end
exif?()
click to toggle source
# File lib/tumblr-themer/post/photo.rb, line 14 def exif? boolify(exif) end
photo()
click to toggle source
# File lib/tumblr-themer/post/photo.rb, line 2 def photo data['photos'].first['alt_sizes'] end
photo_size(size)
click to toggle source
# File lib/tumblr-themer/post/photo.rb, line 6 def photo_size size photo.find {|p| p['width'] == size}||photo.first end