Sha256: 89116a70dc2e7c16861af7db02f3a9f6aac9fedf168a2b8e97b12fabdd7a83b7
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
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::Statuses include Connections::Tagged include Connections::Videos extend Searchable attr_accessor :name, :username, :link, :category, :founded, :company_overview, :mission, :products, :fan_count, :location, :website, :like_count, :venue def initialize(identifier, attributes = {}) super @name = attributes[:name] @username = attributes[:username] @link = attributes[:link] @category = attributes[:category] if (founded = attributes[:founded]) @founded = Date.parse(founded) rescue Date.new(founded.to_i) end @company_overview = attributes[:company_overview] @mission = attributes[:mission] if (products = attributes[:products]) @products = products.split "\n" end @fan_count = attributes[:fan_count] if (location = attributes[:location]) @venue = Venue.new(location) end @website = attributes[:website] @like_count = attributes[:likes] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-1.2.3 | lib/fb_graph/page.rb |
fb_graph-1.2.2 | lib/fb_graph/page.rb |