Sha256: 2565608c5b4f6bf9f7030e5c71edc7cb659590427af8b15d47b5b9cb1eb6c8e8

Contents?: true

Size: 1.07 KB

Versions: 19

Compression:

Stored size: 1.07 KB

Contents

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

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

    def initialize(identifier, attributes = {})
      super
      [:name, :username, :category, :talking_about_count].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

19 entries across 19 versions & 1 rubygems

Version Path
fb_graph-2.4.12 lib/fb_graph/page.rb
fb_graph-2.4.11 lib/fb_graph/page.rb
fb_graph-2.4.10 lib/fb_graph/page.rb
fb_graph-2.4.9 lib/fb_graph/page.rb
fb_graph-2.4.8 lib/fb_graph/page.rb
fb_graph-2.4.7 lib/fb_graph/page.rb
fb_graph-2.4.6 lib/fb_graph/page.rb
fb_graph-2.4.4 lib/fb_graph/page.rb
fb_graph-2.4.3 lib/fb_graph/page.rb
fb_graph-2.4.2 lib/fb_graph/page.rb
fb_graph-2.4.1 lib/fb_graph/page.rb
fb_graph-2.4.0 lib/fb_graph/page.rb
fb_graph-2.3.2 lib/fb_graph/page.rb
fb_graph-2.3.1 lib/fb_graph/page.rb
fb_graph-2.3.0 lib/fb_graph/page.rb
fb_graph-2.2.6 lib/fb_graph/page.rb
fb_graph-2.2.5 lib/fb_graph/page.rb
fb_graph-2.2.4 lib/fb_graph/page.rb
fb_graph-2.2.3 lib/fb_graph/page.rb