Class: MailForm::WarrantyFloorHeating
- Inherits:
-
ContactForm
- Object
- ContactForm
- MailForm::WarrantyFloorHeating
- Includes:
- MailForms::Homeowner, MailForms::Installer1, MailForms::Installer2
- Defined in:
- app/models/mail_form/warranty_floor_heating.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
- .installation_type ⇒ Object
- .installer_type ⇒ Object
- .purchase_source ⇒ Object
- .roll_floor_type ⇒ Object
- .roll_room_type ⇒ Object
Instance Method Summary collapse
Class Method Details
.control_type ⇒ Object
101 102 103 104 105 106 107 108 109 110 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 101 def self.control_type [ "nSpire Touch WiFi Programmable Thermostat (UWG4-4999)", "nSpire Touch Programmable Thermostat (UDG4-4999)", "nHance Programmable Thermostat (UDG-4999)", "nTrust Nonprogrammable Thermostat (UTN4-4999)", "nJoy WiFi LED Touch Programmable Thermostat (UDG5-4999-WY)", "Other" ] end |
.experience_customer_support ⇒ Object
161 162 163 164 165 166 167 168 169 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 161 def self.experience_customer_support [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_information_provided ⇒ Object
171 172 173 174 175 176 177 178 179 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 171 def self.experience_information_provided [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_installation ⇒ Object
191 192 193 194 195 196 197 198 199 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 191 def self.experience_installation [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_shipping ⇒ Object
181 182 183 184 185 186 187 188 189 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 181 def self.experience_shipping [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.installation_type ⇒ Object
213 214 215 216 217 218 219 220 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 213 def self.installation_type [ "TempZone™ for Tile, Stone and Hardwood", "Environ II™ for Carpet and Laminate ", "Slab Heating for Concrete Slab", "Other" ] end |
.installer_type ⇒ Object
222 223 224 225 226 227 228 229 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 222 def self.installer_type [ "Floor Installer", "Contract/Builder", "Electrician", "Other" ] end |
.purchase_source ⇒ Object
112 113 114 115 116 117 118 119 120 121 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 112 def self.purchase_source [ "WarmlyYours", "Amazon", "Costco", "Home Depot", "Lowe's", "Other" ] end |
.roll_floor_type ⇒ Object
148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 148 def self.roll_floor_type %w[ Tile Carpet Marble Hardwood Laminate Vinyl PVC Other ] end |
.roll_room_type ⇒ Object
201 202 203 204 205 206 207 208 209 210 211 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 201 def self.roll_room_type [ "Bathroom", "Kitchen", "Bedroom", "Basement", "Sunroom", "Living Room", "Other" ] end |
Instance Method Details
#email_address ⇒ Object
231 232 233 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 231 def email_address homeowner_email_address end |
#has_roll?(roll_number) ⇒ Boolean
239 240 241 242 243 244 245 246 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 239 def has_roll?(roll_number) send("roll_#{roll_number}_product_id").present? or send("roll_#{roll_number}_ohm_1").present? or send("roll_#{roll_number}_ohm_2").present? or send("roll_#{roll_number}_ohm_3").present? or send("roll_#{roll_number}_floor_type").present? or send("roll_#{roll_number}_room_type").present? end |
#to ⇒ Object
235 236 237 |
# File 'app/models/mail_form/warranty_floor_heating.rb', line 235 def to "info@warmlyyours.com" end |