class Facebooker::Page

Attributes

affiliation[RW]
artists_we_like[RW]
attire[RW]
awards[RW]
band_interests[RW]
band_members[RW]
bio[RW]
birthday[RW]
booking_agent[RW]
built[RW]
company_overview[RW]
culinary_team[RW]
current_location[RW]
directed_by[RW]
fan_count[RW]
features[RW]
founded[RW]
general_info[RW]
general_manager[RW]
genre[RW]
has_added_app[RW]
hometown[RW]
hours[RW]
id[RW]
influences[RW]
location[RW]
members[RW]
mission[RW]
mpg[RW]
name[RW]
network[RW]
page_id[RW]
page_url[RW]
parking[RW]
payment_options[RW]
personal_info[RW]
personal_interests[RW]
pic[RW]
pic_big[RW]
pic_large[RW]
pic_small[RW]
pic_square[RW]
plot_outline[RW]
price_range[RW]
produced_by[RW]
products[RW]
public_transit[RW]
record_label[RW]
release_date[RW]
restaurant_services[RW]
restaurant_specialties[RW]
schedule[RW]
screenplay_by[RW]
season[RW]
starring[RW]
studio[RW]
type[RW]
website[RW]
written_by[RW]

Public Instance Methods

genre=(value) click to toggle source
# File lib/facebooker/models/page.rb, line 34
def genre=(value)
  @genre = value.kind_of?(Hash) ? Genre.from_hash(value) : value
end
user_is_admin?(user) click to toggle source
# File lib/facebooker/models/page.rb, line 38
def user_is_admin?(user)
  Session.current.post('facebook.pages.isAdmin', :page_id=>self.page_id, :uid=>Facebooker::User.cast_to_facebook_id(user))
end
user_is_fan?(user) click to toggle source
# File lib/facebooker/models/page.rb, line 42
def user_is_fan?(user)
  Session.current.post('facebook.pages.isFan', :page_id=>self.page_id, :uid=>Facebooker::User.cast_to_facebook_id(user))
end

Public Class Methods

new(*args) click to toggle source
# File lib/facebooker/models/page.rb, line 5
def initialize(*args)
  if args.size == 1 and (args.first.is_a?(Integer) or args.first.is_a?(String))
    self.page_id=args.first
  else
    super
  end
end