Sha256: a53eb471407577a542cf67cd74243109df76ae66f3b455d42e27dd896b4ae81b
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
module FbGraph class User < Node include Connections::Home include Connections::Feed include Connections::Tagged include Connections::Posts include Connections::Picture include Connections::Friends include Connections::Activities include Connections::Interests include Connections::Music include Connections::Books include Connections::Movies include Connections::Television include Connections::Likes include Connections::Photos include Connections::Albums include Connections::Videos include Connections::Groups include Connections::Statuses include Connections::Links include Connections::Notes include Connections::Events # TODO: # include Connections::Inbox # include Connections::Outbox # include Connections::Updates attr_accessor :name, :last_name, :first_name, :link, :about, :birthday, :work, :education, :email, :website def initialize(identifier, options = {}) super @name = options[:name] @last_name = options[:last_name] @first_name = options[:first_name] @link = options[:link] @about = options[:about] @email = options[:email] if options[:birthday] @birthday = Date.parse(options[:birthday]) end @work = [] if options[:work] options[:work].each do |work| @work << FbGraph::Work.new(work) end end @education = [] if options[:education] options[:education].each do |education| @education << FbGraph::Education.new(education) end end @website = options[:website].to_s.split("\n") end def self.me(access_token) new('me', :access_token => access_token) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.0.8 | lib/fb_graph/user.rb |