Class: FbGraph::AdCampaignGroup

Inherits:
Node
  • Object
show all
Includes:
Connections::AdCampaigns, Connections::AdGroups
Defined in:
lib/fb_graph/ad_campaign_group.rb

Constant Summary collapse

ATTRS =
[
  :account_id,
  :name,
  :objective,
  :campaign_group_status,
  :buying_type
]

Instance Attribute Summary

Attributes inherited from Node

#access_token, #endpoint, #identifier, #raw_attributes

Instance Method Summary collapse

Methods included from Connections::AdGroups

#ad_group!, #ad_groups

Methods included from Connections::AdCampaigns

#ad_campaign!, #ad_campaigns

Methods inherited from Node

#connection, #destroy, fetch, #fetch, #update

Methods included from Comparison

#==

Constructor Details

#initialize(identifier, attributes = {}) ⇒ AdCampaignGroup

Returns a new instance of AdCampaignGroup.


15
16
17
18
19
20
21
# File 'lib/fb_graph/ad_campaign_group.rb', line 15

def initialize(identifier, attributes = {})
  super

  ATTRS.each do |field|
    send("#{field}=", attributes[field.to_sym])
  end
end