Sha256: 0a6a8eb7c9de1f07a4ca6686d88802600a35a3994fad2b7f5cf40ba5397a2ccd

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

module FbGraph2
  class Page < Node
    register_attributes(
      raw: [
        :about, :attire, :band_members, :booking_agent, :can_post, :category, :checkins, :company_overview,
        :current_location, :description, :directed_by, :founded, :general_info, :general_manager, :hometown,
        :is_permanently_closed, :is_published, :is_unclaimed, :likes, :link, :mission, :name, :phone, :press_contact,
        :products, :talking_about_count, :username, :website, :were_here_count,
        # only within /:user_id/accounts context
        :perms
      ],
      date: [:birthday],
      page: [:best_page],
      custom: [
        :category_list, :cover, :context, :hours, :location, :parking, :price_range, :restaurant_services,
        :restaurant_specialties
      ]
    )

    def initialize(id, attributes = {})
      super
      # TODO: handle custom attributes.
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fb_graph2-0.0.1 lib/fb_graph2/page.rb
fb_graph2-0.0.0 lib/fb_graph2/page.rb