Sha256: 986ee4c2cbb589b4ae90f367904ff6095e79da053f3a8ca7f94961826e34ce22

Contents?: true

Size: 589 Bytes

Versions: 3

Compression:

Stored size: 589 Bytes

Contents

module FbGraph2
  class Post < Node
    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],
      custom: [
        :actions, :message_tags, :privacy, :properties, :shares, :status_type, :type
      ]
    )

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fb_graph2-0.0.2 lib/fb_graph2/post.rb
fb_graph2-0.0.1 lib/fb_graph2/post.rb
fb_graph2-0.0.0 lib/fb_graph2/post.rb