Sha256: cb9488d81c0ab8bbbcafdef4a88bab2bbcb59fddf6838faf019598b5e5426fc8

Contents?: true

Size: 645 Bytes

Versions: 8

Compression:

Stored size: 645 Bytes

Contents

module FbGraph2
  module OpenGraph
    class Action < Node
      include Edge::Comments
      include Edge::Likes::LikeeContext

      register_attributes(
        raw: [:message, :no_feed_story, :ref, :type],
        time: [:end_time, :publish_time, :start_time],
        app: [:application],
        profile: [:from],
        custom: [:object]
      )

      def initialize(id, attributes = {})
        super
        if attributes.include?(:data) && attributes[:data].include?(:object)
          _object_ = attributes[:data][:object]
          self.object = OpenGraph::Object.new _object_[:id], _object_
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fb_graph2-0.8.0 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.9 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.8 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.7 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.6 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.5 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.4 lib/fb_graph2/open_graph/action.rb
fb_graph2-0.7.3 lib/fb_graph2/open_graph/action.rb