Sha256: 85b7275152c7f5c60d07474f4549d7ef76b1ad1b7c24fb2d5b57f6af708b83a8

Contents?: true

Size: 885 Bytes

Versions: 40

Compression:

Stored size: 885 Bytes

Contents

module FbGraph
  class Group < Node
    include Connections::Feed
    include Connections::Members
    include Connections::Picture
    extend Searchable

    attr_accessor :owner, :name, :description, :link, :icon, :venue, :privacy, :version, :updated_time

    def initialize(identifier, attributes = {})
      super
      if (owner = attributes[:owner])
        @owner = User.new(owner.delete(:id), owner)
      end
      @name         = attributes[:name]
      @description  = attributes[:description]
      @link         = attributes[:link]
      @icon         = attributes[:icon]
      @privacy      = attributes[:privacy]
      @version      = attributes[:version]
      if attributes[:venue]
        @venue = Venue.new(attributes[:venue])
      end
      if attributes[:updated_time]
        @updated_time = Time.parse(attributes[:updated_time]).utc
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
fb_graph-1.8.0 lib/fb_graph/group.rb
fb_graph-1.8.0.alpha2 lib/fb_graph/group.rb
fb_graph-1.7.5 lib/fb_graph/group.rb
fb_graph-1.8.0.alpha lib/fb_graph/group.rb
fb_graph-1.7.4 lib/fb_graph/group.rb
fb_graph-1.7.3 lib/fb_graph/group.rb
fb_graph-1.7.2 lib/fb_graph/group.rb
fb_graph-1.7.1 lib/fb_graph/group.rb
fb_graph-1.7.0 lib/fb_graph/group.rb
fb_graph-1.7.0.alpha2 lib/fb_graph/group.rb
fb_graph-1.6.9 lib/fb_graph/group.rb
fb_graph-1.7.0.alpha lib/fb_graph/group.rb
fb_graph-1.6.8 lib/fb_graph/group.rb
fb_graph-1.6.7 lib/fb_graph/group.rb
fb_graph-1.6.5 lib/fb_graph/group.rb
fb_graph-1.6.4 lib/fb_graph/group.rb
fb_graph-1.6.3 lib/fb_graph/group.rb
fb_graph-1.6.2 lib/fb_graph/group.rb
fb_graph-1.6.1 lib/fb_graph/group.rb
fb_graph-1.6.0 lib/fb_graph/group.rb