Sha256: d39b56ec6a3ca59d33ffe3c18ab2ed0d6fc28a8decd1d006f220cbb38c203636

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

module FbGraph
  module Connections
    module Links
      def links(options = {})
        links = FbGraph::Collection.new(get(options.merge(:connection => 'links')))
        links.map! do |link|
          Link.new(link.delete(:id), link)
        end
      end

      def link!(options = {})
        link = post(options.merge(:connection => 'links'))
        Link.new(link.delete(:id), options.merge(link))
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fb_graph-0.2.2 lib/fb_graph/connections/links.rb
fb_graph-0.2.1 lib/fb_graph/connections/links.rb
fb_graph-0.2.0 lib/fb_graph/connections/links.rb
fb_graph-0.1.3 lib/fb_graph/connections/links.rb
fb_graph-0.1.2 lib/fb_graph/connections/links.rb
fb_graph-0.1.1 lib/fb_graph/connections/links.rb
fb_graph-0.1.0 lib/fb_graph/connections/links.rb
fb_graph-0.0.8 lib/fb_graph/connections/links.rb
fb_graph-0.0.7 lib/fb_graph/connections/links.rb