Sha256: 330a8185aaf8ba831a48e370da66dfb85bb79b3b8d6b42178e785fe989cf9a7f

Contents?: true

Size: 428 Bytes

Versions: 17

Compression:

Stored size: 428 Bytes

Contents

module FbGraph
  module Connections
    module Maybe
      def maybe(options = {})
        members = self.connection :maybe, options
        members.map! do |member|
          User.new member[:id], member.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def maybe!(options = {})
        post options.merge(:connection => :maybe)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fb_graph-2.4.14 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.13 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.12 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.11 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.10 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.9 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.8 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.7 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.6 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.4 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.3 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.2 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.1 lib/fb_graph/connections/maybe.rb
fb_graph-2.4.0 lib/fb_graph/connections/maybe.rb
fb_graph-2.3.2 lib/fb_graph/connections/maybe.rb
fb_graph-2.3.1 lib/fb_graph/connections/maybe.rb
fb_graph-2.3.0 lib/fb_graph/connections/maybe.rb