Sha256: 69a6c1f54ca4a2d1d79fc75ed71a19b5a6ac87e2bbe49b016b854e775da2d210

Contents?: true

Size: 495 Bytes

Versions: 16

Compression:

Stored size: 495 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fb_graph-1.8.0 lib/fb_graph/connections/payments.rb
fb_graph-1.8.0.alpha2 lib/fb_graph/connections/payments.rb
fb_graph-1.7.5 lib/fb_graph/connections/payments.rb
fb_graph-1.8.0.alpha lib/fb_graph/connections/payments.rb
fb_graph-1.7.4 lib/fb_graph/connections/payments.rb
fb_graph-1.7.3 lib/fb_graph/connections/payments.rb
fb_graph-1.7.2 lib/fb_graph/connections/payments.rb
fb_graph-1.7.1 lib/fb_graph/connections/payments.rb
fb_graph-1.7.0 lib/fb_graph/connections/payments.rb
fb_graph-1.7.0.alpha2 lib/fb_graph/connections/payments.rb
fb_graph-1.6.9 lib/fb_graph/connections/payments.rb
fb_graph-1.7.0.alpha lib/fb_graph/connections/payments.rb
fb_graph-1.6.8 lib/fb_graph/connections/payments.rb
fb_graph-1.6.7 lib/fb_graph/connections/payments.rb
fb_graph-1.6.5 lib/fb_graph/connections/payments.rb
fb_graph-1.6.4 lib/fb_graph/connections/payments.rb