Class: FbGraph::AdCampaign
- Inherits:
-
Node
- Object
- Node
- FbGraph::AdCampaign
- Includes:
- Connections::AdGroups
- Defined in:
- lib/fb_graph/ad_campaign.rb
Instance Attribute Summary (collapse)
-
- (Object) account_id
Returns the value of attribute account_id.
-
- (Object) campaign_id
Returns the value of attribute campaign_id.
-
- (Object) campaign_status
Returns the value of attribute campaign_status.
-
- (Object) daily_budget
Returns the value of attribute daily_budget.
-
- (Object) daily_imps
Returns the value of attribute daily_imps.
-
- (Object) end_time
Returns the value of attribute end_time.
-
- (Object) lifetime_budget
Returns the value of attribute lifetime_budget.
-
- (Object) lifetime_imps
Returns the value of attribute lifetime_imps.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) start_time
Returns the value of attribute start_time.
-
- (Object) updated_time
Returns the value of attribute updated_time.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary (collapse)
-
- (AdCampaign) initialize(identifier, attributes = {})
constructor
A new instance of AdCampaign.
- - (Object) update(options)
Methods included from Connections::AdGroups
Methods inherited from Node
#connection, #destroy, fetch, #fetch
Methods included from Comparison
Constructor Details
- (AdCampaign) initialize(identifier, attributes = {})
A new instance of AdCampaign
7 8 9 10 |
# File 'lib/fb_graph/ad_campaign.rb', line 7 def initialize(identifier, attributes = {}) super set_attrs(attributes) end |
Instance Attribute Details
- (Object) account_id
Returns the value of attribute account_id
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def account_id @account_id end |
- (Object) campaign_id
Returns the value of attribute campaign_id
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def campaign_id @campaign_id end |
- (Object) campaign_status
Returns the value of attribute campaign_status
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def campaign_status @campaign_status end |
- (Object) daily_budget
Returns the value of attribute daily_budget
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def daily_budget @daily_budget end |
- (Object) daily_imps
Returns the value of attribute daily_imps
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def daily_imps @daily_imps end |
- (Object) end_time
Returns the value of attribute end_time
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def end_time @end_time end |
- (Object) lifetime_budget
Returns the value of attribute lifetime_budget
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def lifetime_budget @lifetime_budget end |
- (Object) lifetime_imps
Returns the value of attribute lifetime_imps
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def lifetime_imps @lifetime_imps end |
- (Object) name
Returns the value of attribute name
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def name @name end |
- (Object) start_time
Returns the value of attribute start_time
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def start_time @start_time end |
- (Object) updated_time
Returns the value of attribute updated_time
5 6 7 |
# File 'lib/fb_graph/ad_campaign.rb', line 5 def updated_time @updated_time end |
Instance Method Details
- (Object) update(options)
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fb_graph/ad_campaign.rb', line 12 def update() response = super() if [:redownload] attributes = .merge(response[:data][:campaigns][identifier]).with_indifferent_access set_attrs(attributes) end response end |