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
215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 215 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
167 168 169 170 171 172 173 174 175 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 167 def self.experience_customer_support [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_information_provided ⇒ Object
177 178 179 180 181 182 183 184 185 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 177 def self.experience_information_provided [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_installation ⇒ Object
197 198 199 200 201 202 203 204 205 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 197 def self.experience_installation [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.experience_shipping ⇒ Object
187 188 189 190 191 192 193 194 195 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 187 def self.experience_shipping [ "5 - Excellent", "4", "3 - Average", "2", "1 - Unsatisfactory" ] end |
.installation_type ⇒ Object
207 208 209 210 211 212 213 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 207 def self.installation_type [ "Snow Melting Cable", "Snow Melting Mat", "Other" ] end |
.installed_under ⇒ Object
276 277 278 279 280 281 282 283 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 276 def self.installed_under %w[ Concrete Asphalt Pavers Other ] end |
.installer_type ⇒ Object
239 240 241 242 243 244 245 246 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 239 def self.installer_type [ "Floor Installer", "Contract/Builder", "Electrician", "Other" ] end |
.purchase_source ⇒ Object
228 229 230 231 232 233 234 235 236 237 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 228 def self.purchase_source [ "WarmlyYours", "Amazon", "Costco", "Home Depot", "Lowe's", "Other" ] end |
.roll_floor_type ⇒ Object
256 257 258 259 260 261 262 263 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 256 def self.roll_floor_type %w[ Asphalt Concrete Pavers Other ] end |
.roll_room_type ⇒ Object
265 266 267 268 269 270 271 272 273 274 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 265 def self.roll_room_type [ "Driveway", "Ramp", "Walkway/Path", "Outdoor Stairs", "Patios", "Other" ] end |
Instance Method Details
#email_address ⇒ Object
248 249 250 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 248 def email_address homeowner_email_address end |
#has_roll?(roll_number) ⇒ Boolean
285 286 287 288 289 290 291 292 293 294 295 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 285 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
252 253 254 |
# File 'app/models/mail_form/warranty_snow_melting.rb', line 252 def to "info@warmlyyours.com" end |