class Drophunter::FileTypes::Image
Public Instance Methods
find_and_save(saver)
click to toggle source
# File lib/drophunter/file_types/image.rb, line 4 def find_and_save(saver) if image_element puts "#{id} is OK" saver.save(id, image_element.attr("src")) else puts "#{id} is not a Droplr image" end end
Private Instance Methods
image_element()
click to toggle source
# File lib/drophunter/file_types/image.rb, line 16 def image_element @image_element ||= content.at_css("body.image-drop .image img") end