Sha256: e1fd219e6ffe5e223be24f13fb1133c1e49fd99f1199b6825a1fe1cc215d13ef

Contents?: true

Size: 643 Bytes

Versions: 19

Compression:

Stored size: 643 Bytes

Contents

module FbGraph
  module Connections
    module AppRequests
      def app_requests(options = {})
        app_requests = self.connection :apprequests, options
        app_requests.map! do |app_request|
          AppRequest.new app_request[:id], app_request.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def app_request!(options = {})
        app_request_id = post options.merge(:connection => :apprequests)
        AppRequest.new app_request_id, options.merge(
          :access_token => options[:access_token] || self.access_token
        )
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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