Class: AffiliateCampaign

Inherits:
SalesCampaign show all
Defined in:
app/models/affiliate_campaign.rb

Overview

An affiliate campaign

Carries an affiliate fee (and sales fee)

Instance Method Summary collapse

Methods inherited from SalesCampaign

#set_cost

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

#costObject

The sum cost of this campaign



14
15
16
# File 'app/models/affiliate_campaign.rb', line 14

def cost
  super + affiliate_fee
end