Sha256: df8e1ec520eb143ac623c44bcc82f0a55769c70ed324217fc238f139c0d184ca

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

module FbGraph
  module Connections
    module Tags
      def tags(options = {})
        tags = self.connection(:tags, options)
        if tags.first.is_a?(Tag)
          tags
        else
          tags.map! do |tag|
            tag[:access_token] ||= options[:access_token] || self.access_token
            Tag.new(tag)
          end
        end
      end

      module Taggable
        def tag!(options = {})
          post(options.merge(:connection => :tags))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-2.2.6 lib/fb_graph/connections/tags.rb
fb_graph-2.2.5 lib/fb_graph/connections/tags.rb
fb_graph-2.2.4 lib/fb_graph/connections/tags.rb
fb_graph-2.2.3 lib/fb_graph/connections/tags.rb