Sha256: 7e77d910e690883e3554885c4744b9ae667ba0ace209c9f26f285dd07be8399c

Contents?: true

Size: 501 Bytes

Versions: 16

Compression:

Stored size: 501 Bytes

Contents

module FbGraph2
  class Comment < Node
    include Edge::Comments
    include Edge::Likes::LikeeContext

    register_attributes(
      raw: [:can_comment, :can_remove, :comment_count, :like_count, :message, :user_likes, :is_hidden, :can_hide],
      time: [:created_time],
      comment: [:parent],
      profile: [:from],
      profiles: [:message_tags],
      custom: [:attachment]
    )

    def initialize(id, attributes = {})
      super
      # TODO: handle custom attributes.
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/comment.rb
fb_graph2-1.2.0 lib/fb_graph2/comment.rb
fb_graph2-1.1.1 lib/fb_graph2/comment.rb
fb_graph2-1.1.0 lib/fb_graph2/comment.rb
fb_graph2-1.0.1 lib/fb_graph2/comment.rb
fb_graph2-1.0.0 lib/fb_graph2/comment.rb
fb_graph2-0.9.1 lib/fb_graph2/comment.rb
fb_graph2-0.9.0 lib/fb_graph2/comment.rb
fb_graph2-0.8.0 lib/fb_graph2/comment.rb
fb_graph2-0.7.9 lib/fb_graph2/comment.rb
fb_graph2-0.7.8 lib/fb_graph2/comment.rb
fb_graph2-0.7.7 lib/fb_graph2/comment.rb
fb_graph2-0.7.6 lib/fb_graph2/comment.rb
fb_graph2-0.7.5 lib/fb_graph2/comment.rb
fb_graph2-0.7.4 lib/fb_graph2/comment.rb
fb_graph2-0.7.3 lib/fb_graph2/comment.rb