Sha256: da33b1885cd31de045d923121e5f3f05bb5057f610c53328b11c2fdf091c59d5

Contents?: true

Size: 475 Bytes

Versions: 10

Compression:

Stored size: 475 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],
      time: [:created_time],
      user: [:from],
      comment: [:parent],
      profiles: [:message_tags],
      custom: [:attachment]
    )

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fb_graph2-0.2.0 lib/fb_graph2/comment.rb
fb_graph2-0.1.3 lib/fb_graph2/comment.rb
fb_graph2-0.1.2 lib/fb_graph2/comment.rb
fb_graph2-0.1.1 lib/fb_graph2/comment.rb
fb_graph2-0.1.0 lib/fb_graph2/comment.rb
fb_graph2-0.0.11 lib/fb_graph2/comment.rb
fb_graph2-0.0.10 lib/fb_graph2/comment.rb
fb_graph2-0.0.9 lib/fb_graph2/comment.rb
fb_graph2-0.0.8 lib/fb_graph2/comment.rb
fb_graph2-0.0.7 lib/fb_graph2/comment.rb