Class: MailForm::WarrantyLedMirror

Inherits:
ContactForm
  • Object
show all
Includes:
MailForms::Homeowner, MailForms::Installer1, MailForms::Installer2
Defined in:
app/models/mail_form/warranty_led_mirror.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

Instance Method Summary collapse

Class Method Details

.experience_customer_supportObject



79
80
81
82
83
84
85
86
87
# File 'app/models/mail_form/warranty_led_mirror.rb', line 79

def self.experience_customer_support
  [
    "5 - Excellent",
    "4",
    "3 - Average",
    "2",
    "1 - Unsatisfactory"
  ]
end

.experience_information_providedObject



89
90
91
92
93
94
95
96
97
# File 'app/models/mail_form/warranty_led_mirror.rb', line 89

def self.experience_information_provided
  [
    "5 - Excellent",
    "4",
    "3 - Average",
    "2",
    "1 - Unsatisfactory"
  ]
end

.experience_installationObject



109
110
111
112
113
114
115
116
117
# File 'app/models/mail_form/warranty_led_mirror.rb', line 109

def self.experience_installation
  [
    "5 - Excellent",
    "4",
    "3 - Average",
    "2",
    "1 - Unsatisfactory"
  ]
end

.experience_shippingObject



99
100
101
102
103
104
105
106
107
# File 'app/models/mail_form/warranty_led_mirror.rb', line 99

def self.experience_shipping
  [
    "5 - Excellent",
    "4",
    "3 - Average",
    "2",
    "1 - Unsatisfactory"
  ]
end

.installer_typeObject



119
120
121
122
123
124
125
126
# File 'app/models/mail_form/warranty_led_mirror.rb', line 119

def self.installer_type
  [
    "Floor Installer",
    "Contract/Builder",
    "Electrician",
    "Other"
  ]
end

.purchase_sourceObject



67
68
69
70
71
72
73
74
75
76
# File 'app/models/mail_form/warranty_led_mirror.rb', line 67

def self.purchase_source
  [
    "WarmlyYours",
    "Amazon",
    "Costco",
    "Home Depot",
    "Lowe's",
    "Other"
  ]
end

Instance Method Details

#email_addressObject



128
129
130
# File 'app/models/mail_form/warranty_led_mirror.rb', line 128

def email_address
  homeowner_email_address
end

#toObject



132
133
134
# File 'app/models/mail_form/warranty_led_mirror.rb', line 132

def to
  "info@warmlyyours.com"
end