Class: Facebooker::Feed::ActionBase
- Inherits:
-
Object
- Object
- Facebooker::Feed::ActionBase
- Defined in:
- lib/facebooker/feed.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#add_image(image, link = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/facebooker/feed.rb', line 12 def add_image(image,link=nil) 1.upto(4) do |num| if send("image_#{num}").blank? send("image_#{num}=",image) send("image_#{num}_link=",link) unless link.nil? return num end end end |