class Imgur::Album
Public Instance Methods
cover_link()
click to toggle source
# File lib/imgur/album.rb, line 13 def cover_link image = find_image_by_id(cover) image.link if image end
find_image_by_id(id)
click to toggle source
# File lib/imgur/album.rb, line 18 def find_image_by_id(id) images.find { |i| i.id == id } end
image_links()
click to toggle source
# File lib/imgur/album.rb, line 9 def image_links @image_links ||= images.map &:link end
images()
click to toggle source
# File lib/imgur/album.rb, line 5 def images @images ||= Imgur::Image.collection(attributes["images"]) end