Sha256: e5b6744cff1eb2079ef3622e4578a2bae31027960275866ce1974882d0dd7304

Contents?: true

Size: 379 Bytes

Versions: 57

Compression:

Stored size: 379 Bytes

Contents

module FbGraph
  module Connections
    module AdAccounts
      def ad_accounts(options = {})
        ad_accounts = self.connection :adaccounts, options
        ad_accounts.map! do |ad_account|
          AdAccount.new ad_account[:id], ad_account.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
fb_graph-2.7.15 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.14 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.13 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.12 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.11 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.10 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.9 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.8 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.7 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.6 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.5 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.4 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.3 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.2 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.1 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.7.0 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.6.7 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.6.6 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.6.5 lib/fb_graph/connections/ad_accounts.rb
fb_graph-2.6.4 lib/fb_graph/connections/ad_accounts.rb