Sha256: b7cea594854e1c5bcc35063d53fa3ea8d0f9410606fc24d4153daf3cd702b8af

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 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],
      application: [: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

2 entries across 2 versions & 1 rubygems

Version Path
fb_graph2-0.0.5 lib/fb_graph2/post.rb
fb_graph2-0.0.4 lib/fb_graph2/post.rb