Class: MailForm::WarrantySnowMelting
- Inherits:
-
ContactForm
- Object
- ContactForm
- MailForm::WarrantySnowMelting
- Includes:
- MailForms::Homeowner, MailForms::Installer1, MailForms::Installer2
- Defined in:
- app/models/mail_form/warranty_snow_melting.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
- .installed_under ⇒ 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
217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 217 def self.control_type [ "ZoneBraker Touchscreen Multi-Zone Snow & Ice Melting Control (SC-MZ-TOUCH)", "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)", "Other" ] end |
.experience_customer_support ⇒ Object
169 170 171 172 173 174 175 176 177 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 169 def self.experience_customer_support [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_information_provided ⇒ Object
179 180 181 182 183 184 185 186 187 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 179 def self.experience_information_provided [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_installation ⇒ Object
199 200 201 202 203 204 205 206 207 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 199 def self.experience_installation [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_shipping ⇒ Object
189 190 191 192 193 194 195 196 197 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 189 def self.experience_shipping [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.installation_type ⇒ Object
209 210 211 212 213 214 215 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 209 def self.installation_type [ "Snow Melting Cable", "Snow Melting Mat", "Other" ] end |
.installed_under ⇒ Object
278 279 280 281 282 283 284 285 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 278 def self.installed_under [ "Concrete", "Asphalt", "Pavers", "Other" ] end |
.installer_type ⇒ Object
241 242 243 244 245 246 247 248 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 241 def self.installer_type [ "Floor Installer", "Contract/Builder", "Electrician", "Other" ] end |
.purchase_source ⇒ Object
230 231 232 233 234 235 236 237 238 239 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 230 def self.purchase_source [ "WarmlyYours", "Amazon", "Costco", "Home Depot", "Lowe's", "Other" ] end |
.roll_floor_type ⇒ Object
258 259 260 261 262 263 264 265 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 258 def self.roll_floor_type [ "Asphalt", "Concrete", "Pavers", "Other", ] end |
.roll_room_type ⇒ Object
267 268 269 270 271 272 273 274 275 276 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 267 def self.roll_room_type [ "Driveway", "Ramp", "Walkway/Path", "Outdoor Stairs", "Patios", "Other", ] end |
Instance Method Details
#email_address ⇒ Object
250 251 252 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 250 def email_address homeowner_email_address end |
#has_roll?(roll_number) ⇒ Boolean
287 288 289 290 291 292 293 294 295 296 297 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 287 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}_megohm_1").present? or send("roll_#{roll_number}_megohm_2").present? or send("roll_#{roll_number}_megohm_3").present? or send("roll_#{roll_number}_floor_type").present? or send("roll_#{roll_number}_room_type").present? end |
#to ⇒ Object
254 255 256 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 254 def to "info@warmlyyours.com" end |