Class: NoCampaign

Inherits:
Campaign
  • Object
show all
Defined in:
app/models/no_campaign.rb

Instance Method Summary collapse

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

#codeObject



10
11
12
# File 'app/models/no_campaign.rb', line 10

def code
  'NoCode'
end

#costObject



6
7
8
# File 'app/models/no_campaign.rb', line 6

def cost
  0
end

#nameObject



2
3
4
# File 'app/models/no_campaign.rb', line 2

def name
  self.class.model_name.human
end