Sha256: e471d62f98f6e75e00a8d5858c698b4bc306ec241cce221f17777da9816a6cb5
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 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::Members 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 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 = FbGraph::Venue.new(location) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-1.1.0 | lib/fb_graph/page.rb |