Class: FbGraph::AdCampaignGroup
- 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
-
#initialize(identifier, attributes = {}) ⇒ AdCampaignGroup
constructor
A new instance of AdCampaignGroup.
Methods included from Connections::AdGroups
Methods included from Connections::AdCampaigns
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 |