Sha256: ce18e05a7f0536c273e9339c7f102eb95b06e6aeb6fe9f56c5359eb0d40faf3a
Contents?: true
Size: 488 Bytes
Versions: 5
Compression:
Stored size: 488 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[:id], order) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems