Sha256: 88e8a6ca69c775f286ca61f7010b6a03a41ed71ecaa3463d33341e3a0bef1861

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

module FbGraph
  module Connections
    module Payments
      def payments(options = {})
        options[:access_token] ||= self.access_token
        orders = self.connection(:payments, options)
        orders.map! do |order|
          orders[:access_token] ||= options[:access_token] || self.access_token
          Order.new(order[:id], order)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fb_graph-1.9.3 lib/fb_graph/connections/payments.rb
fb_graph-1.9.2 lib/fb_graph/connections/payments.rb
fb_graph-1.9.1 lib/fb_graph/connections/payments.rb
fb_graph-1.9.0 lib/fb_graph/connections/payments.rb
fb_graph-1.8.6 lib/fb_graph/connections/payments.rb