Class: AdvertisingCampaign
- Defined in:
- app/models/advertising_campaign.rb
Overview
An ad driven campaign.
Unique from other campaigns in that their cost is derived from associated DatedCost records.
Instance Method Summary collapse
-
#cost ⇒ Object
The sum cost of this campaign.
Methods inherited from Campaign
default, #new_visit_count, #new_visit_page_view_count, #repeat_visit_count, #repeat_visit_page_view_count, #to_liquid, #to_s
Instance Method Details
#cost ⇒ Object
The sum cost of this campaign
13 14 15 |
# File 'app/models/advertising_campaign.rb', line 13 def cost Money.new(dated_costs.sum(:cost)) end |