Sha256: f3bd10055b5295a24d6178f243311d2f2ff43b3eb7b81201c024f5af8ad566d4
Contents?: true
Size: 1.33 KB
Versions: 16
Compression:
Stored size: 1.33 KB
Contents
module FbGraph class Application < Node include Connections::Accounts include Connections::Albums include Connections::Events include Connections::Feed include Connections::Insights include Connections::Links include Connections::Notes include Connections::Payments include Connections::Photos include Connections::Picture include Connections::Posts include Connections::Reviews include Connections::Statuses include Connections::Subscriptions include Connections::Tagged include Connections::TestUsers # TODO # include Connections::Translations include Connections::Videos attr_accessor :name, :description, :category, :link, :secret def initialize(client_id, attributes = {}) super @name = attributes[:name] @description = attributes[:description] @category = attributes[:category] @link = attributes[:link] @secret = attributes[:secret] end def get_access_token(secret = nil) self.secret ||= secret auth = Auth.new(self.identifier, self.secret) self.access_token = auth.client.access_token! end def access_token_with_auto_fetch access_token_without_auto_fetch || self.secret && get_access_token end alias_method_chain :access_token, :auto_fetch end end
Version data entries
16 entries across 16 versions & 1 rubygems