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.5.5 lib/fb_graph/group.rb
fb_graph-1.5.4 lib/fb_graph/group.rb
fb_graph-1.5.3 lib/fb_graph/group.rb
fb_graph-1.5.2 lib/fb_graph/group.rb
fb_graph-1.5.1 lib/fb_graph/group.rb
fb_graph-1.5.0 lib/fb_graph/group.rb
fb_graph-1.4.1 lib/fb_graph/group.rb
fb_graph-1.4.0 lib/fb_graph/group.rb
fb_graph-1.3.9 lib/fb_graph/group.rb
fb_graph-1.3.8 lib/fb_graph/group.rb
fb_graph-1.3.7 lib/fb_graph/group.rb
fb_graph-1.3.6 lib/fb_graph/group.rb
fb_graph-1.3.5 lib/fb_graph/group.rb
fb_graph-1.3.4 lib/fb_graph/group.rb
fb_graph-1.3.3 lib/fb_graph/group.rb
fb_graph-1.3.2 lib/fb_graph/group.rb
fb_graph-1.3.1 lib/fb_graph/group.rb
fb_graph-1.3.0 lib/fb_graph/group.rb
fb_graph-1.2.5 lib/fb_graph/group.rb
fb_graph-1.2.4 lib/fb_graph/group.rb