Sha256: 6a783e576602aa62bb9c70933cc8aee4a3860f8bb4a35ff45371b4a149568418
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 Bytes
Contents
module FbGraph module Connections module AdCampaigns def ad_campaigns(options = {}) ad_campaigns = self.connection :adcampaigns, options ad_campaigns.map! do |ad_campaign| AdCampaign.new ad_campaign[:id], ad_campaign.merge( :access_token => options[:access_token] || self.access_token ) end end def ad_campaign!(options = {}) ad_campaign = post options.merge(:connection => :adcampaigns) AdCampaign.new ad_campaign[:id], options.merge(ad_campaign).merge( :access_token => options[:access_token] || self.access_token ) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems