Sha256: a5f316878dd21004906c87b845448b0677e390f564dc658c13121bb6ab407eda
Contents?: true
Size: 863 Bytes
Versions: 20
Compression:
Stored size: 863 Bytes
Contents
module Adparlor module Facebook module GraphApi class CustomAudience < GraphObject include Fields::CustomAudience include Traits::Methods field_attrs FIELDS allow_method :create, :destroy allow_local_method :create, :destroy, :update def path raise FbError.new('required parameter account_id missing', 500) unless account_id "/act_#{account_id}/customaudiences" end def update_path raise FbError.new('required parameter id missing', 500) unless id "/#{id}" end def adaccounts @adaccounts ||= CollectionProxy.new(AdAccount, "/#{id}/adaccounts", access_token) end def users @users ||= CollectionProxy.new CustomAudienceUser, "#{id}/users", access_token end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems