Sha256: 4ee278da99cac0e2837d1b117980967d048eb463c298495a279c8a397ff85856

Contents?: true

Size: 694 Bytes

Versions: 4

Compression:

Stored size: 694 Bytes

Contents

module FbGraph2
  class Post < Node
    include Edge::Comments
    include Edge::Likes::LikeeContext
    include Edge::SharedPosts

    register_attributes(
      raw: [
        :caption, :description, :icon, :is_hidden, :link, :message, :name, :object_id, :picture,
        :source, :story
      ],
      time: [:created_time, :updated_time],
      app: [:application],
      page: [:place],
      profile: [:from],
      profiles: [:to, :with_tags],
      actions: [:actions],
      custom: [
        :message_tags, :privacy, :properties, :shares, :status_type, :type
      ]
    )

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph2-0.0.9 lib/fb_graph2/post.rb
fb_graph2-0.0.8 lib/fb_graph2/post.rb
fb_graph2-0.0.7 lib/fb_graph2/post.rb
fb_graph2-0.0.6 lib/fb_graph2/post.rb