Sha256: b4c8959cc5adb33535c3dd4175fdd94f107614ed8a5f28ad25c92ea50577e27f

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 Bytes

Contents

module FbGraph2
  class Edge
    module Tags
      def tags(params = {})
        users = self.edge :tags, params
        users.collect do |user|
          User.new(user[:id], user).authenticate self.access_token
        end
      end

      # NOTE: available both for create & update
      def tag!(params = {})
        self.post params, edge: :tags
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 lib/fb_graph2/edge/tags.rb
fb_graph2-0.0.11 lib/fb_graph2/edge/tags.rb
fb_graph2-0.0.10 lib/fb_graph2/edge/tags.rb
fb_graph2-0.0.9 lib/fb_graph2/edge/tags.rb
fb_graph2-0.0.8 lib/fb_graph2/edge/tags.rb
fb_graph2-0.0.7 lib/fb_graph2/edge/tags.rb