Class: Drophunter::FileTypes::Image
- Inherits:
-
Struct
- Object
- Struct
- Drophunter::FileTypes::Image
- Defined in:
- lib/drophunter/file_types/image.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
3 4 5 |
# File 'lib/drophunter/file_types/image.rb', line 3 def content @content end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/drophunter/file_types/image.rb', line 3 def id @id end |
Instance Method Details
#find_and_save(saver) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# 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 |