Sha256: 9c15381aefcd8fcbe44aabfb7c082e34bc486ce4159cbb2f57e0f78cf1ba9a7d

Contents?: true

Size: 925 Bytes

Versions: 4

Compression:

Stored size: 925 Bytes

Contents

module FbGraph
  class Page < Node
    include Connections::Albums
    include Connections::Checkins
    include Connections::Events
    include Connections::Feed
    include Connections::Groups
    include Connections::Insights
    include Connections::Links
    include Connections::Notes
    include Connections::Photos
    include Connections::Picture
    include Connections::Posts
    include Connections::Settings
    include Connections::Statuses
    include Connections::Tabs
    include Connections::Tagged
    include Connections::Videos
    extend Searchable

    attr_accessor :name, :username, :category, :like_count

    def initialize(identifier, attributes = {})
      super
      [:name, :username, :category].each do |key|
        self.send :"#{key}=", attributes[key]
      end
      @like_count = attributes[:likes] || attributes[:fan_count]
    end
  end
end

require 'fb_graph/page/category_attributes'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-2.0.0.alpha lib/fb_graph/page.rb
fb_graph-1.9.5 lib/fb_graph/page.rb
fb_graph-1.9.4 lib/fb_graph/page.rb
fb_graph-1.9.3 lib/fb_graph/page.rb