Class: MailForm::WarrantyDeicing
- Inherits:
-
ContactForm
- Object
- ContactForm
- MailForm::WarrantyDeicing
- Includes:
- MailForms::Homeowner, MailForms::Installer1, MailForms::Installer2
- Defined in:
- app/models/mail_form/warranty_deicing.rb
Overview
== Schema Information
Table name: contact_forms
Database name: primary
id :integer not null, primary key
object :jsonb
type :string(50) not null
created_at :datetime
updated_at :datetime
creator_id :integer
visit_id :integer
Indexes
index_contact_forms_on_visit_id (visit_id) WHERE (visit_id IS NOT NULL) USING hash
Foreign Keys
fk_rails_... (visit_id => visits.id) ON DELETE => nullify
Class Method Summary collapse
- .control_type ⇒ Object
- .experience_customer_support ⇒ Object
- .experience_information_provided ⇒ Object
- .experience_installation ⇒ Object
- .experience_shipping ⇒ Object
- .installer_type ⇒ Object
- .purchase_source ⇒ Object
Instance Method Summary collapse
Class Method Details
.control_type ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'app/models/mail_form/warranty_deicing.rb', line 77 def self.control_type [ "Premium Snow & Ice Melt Control (SCP-120)", "Advanced Snow & Ice Melt Control (SCA-DUAL)", "Economy Snow & Ice Melt Control (SCE-120)", "Value Snow & Ice Melt Control (SCV-DUAL)", "Timer Snow & Ice Melt Control (SCM-DUAL)", "WiFi Snow & Ice Melt Control (SCW-120-15A)", "Waterproof Outdoor Thermostat (AIR-STAT)", "Other" ] end |
.experience_customer_support ⇒ Object
101 102 103 104 105 106 107 108 109 |
# File 'app/models/mail_form/warranty_deicing.rb', line 101 def self.experience_customer_support [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_information_provided ⇒ Object
111 112 113 114 115 116 117 118 119 |
# File 'app/models/mail_form/warranty_deicing.rb', line 111 def self.experience_information_provided [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_installation ⇒ Object
131 132 133 134 135 136 137 138 139 |
# File 'app/models/mail_form/warranty_deicing.rb', line 131 def self.experience_installation [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_shipping ⇒ Object
121 122 123 124 125 126 127 128 129 |
# File 'app/models/mail_form/warranty_deicing.rb', line 121 def self.experience_shipping [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.installer_type ⇒ Object
141 142 143 144 145 146 147 148 |
# File 'app/models/mail_form/warranty_deicing.rb', line 141 def self.installer_type [ "Floor Installer", "Contract/Builder", "Electrician", "Other" ] end |
.purchase_source ⇒ Object
90 91 92 93 94 95 96 97 98 99 |
# File 'app/models/mail_form/warranty_deicing.rb', line 90 def self.purchase_source [ "WarmlyYours", "Amazon", "Costco", "Home Depot", "Lowe's", "Other" ] end |
Instance Method Details
#email_address ⇒ Object
150 151 152 |
# File 'app/models/mail_form/warranty_deicing.rb', line 150 def email_address homeowner_email_address end |
#to ⇒ Object
154 155 156 |
# File 'app/models/mail_form/warranty_deicing.rb', line 154 def to "info@warmlyyours.com" end |