Class: Offer

Inherits:
Renderable
  • Object
show all
Includes:
E9Rails::ActiveRecord::InheritableOptions, E9Rails::ActiveRecord::Initialization, E9Rails::ActiveRecord::STI
Defined in:
app/models/offer.rb

Overview

A Renderable which “offers” the user something. Responses to these offers are tracked as Leads

Defined Under Namespace

Modules: Identifiers

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.conversion_emailObject



27
28
29
# File 'app/models/offer.rb', line 27

def conversion_email
  SystemEmail.find_by_identifier(Identifiers::CONVERSION_EMAIL)
end

.elementObject



39
40
41
# File 'app/models/offer.rb', line 39

def element
  'offer'
end

.pageObject



31
32
33
# File 'app/models/offer.rb', line 31

def page
  SystemPage.find_by_identifier(Identifiers::PAGE)
end

.partial_pathObject



35
36
37
# File 'app/models/offer.rb', line 35

def partial_path
  'e9_crm/offers/offer'
end

Instance Method Details

#to_sObject



44
45
46
# File 'app/models/offer.rb', line 44

def to_s
  name
end