Sha256: f8f214295b61f56aa0a2fb215aeaba1234fda0dae5ffaf4db75682434cabd78a
Contents?: true
Size: 858 Bytes
Versions: 2
Compression:
Stored size: 858 Bytes
Contents
module Fb # Provides methods to interact with Facebook pages through the Graph API. # @see https://developers.facebook.com/docs/graph-api/reference/page/ class Page # @option [String] the page’s unique ID. attr_reader :id # @option [String] the page’s name. attr_reader :name # @option [String] the page’s category. attr_reader :category # @param [Hash] options to initialize a Page object. # @option [String] :id The page’s unique ID. # @option [String] :name The page’s name. # @option [String] :category The page’s category. def initialize(options = {}) @id = options[:id] @name = options[:name] @category = options[:category] end # @return [String] the representation of the page. def to_s %Q(#<#{self.class.name} #{@id} "#{@name}">) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb-core-1.0.0.alpha2 | lib/fb/page.rb |
fb-core-1.0.0.alpha1 | lib/fb/page.rb |