class Facebooker::MessageThread::Message::Attachment

An attachment can be a photo, a video, or a link

Attributes

caption[RW]
description[RW]
href[RW]
icon[RW]
name[RW]

Public Instance Methods

photo?() click to toggle source

The Facebook messages API is in beta, this helper method is supposed to fail anytime soon

# File lib/facebooker/models/message_thread.rb, line 28
def photo?
  self.href =~ /\Ahttp:\/\/www\.facebook\.com\/photo\.php.*/
end
video?() click to toggle source

The Facebook messages API is in beta, this helper method is supposed to fail anytime soon

# File lib/facebooker/models/message_thread.rb, line 23
def video?
  self.href =~ /\Ahttp:\/\/www\.facebook\.com\/video\/video\.php.*/
end