Sha256: ad7de4982906069629d05b984a1570c28d23a77f979c99545f8daf50b19b84ce

Contents?: true

Size: 774 Bytes

Versions: 6

Compression:

Stored size: 774 Bytes

Contents

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fb_graph-0.8.0 lib/fb_graph/group.rb
fb_graph-0.7.3 lib/fb_graph/group.rb
fb_graph-0.7.2 lib/fb_graph/group.rb
fb_graph-0.7.1 lib/fb_graph/group.rb
fb_graph-0.7.0 lib/fb_graph/group.rb
fb_graph-0.6.0 lib/fb_graph/group.rb