Class: MailForm::WarrantyRadiantPanel

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

.control_typeObject



76
77
78
79
80
81
82
83
84
85
86
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 76

def self.control_type
  [
    "Hardwired 4-Setting Countdown Timer (GK16-30090-0006)",
    "Hardwired Programmable Timer (GK16-30090-0002)",
    "Hardwired WiFi Switch (GK16-30090-0003)",
    "nSpire Touch Programmable Thermostat (UDG4-4999-WY)",
    "nSpire Touch WiFi Programmable Thermostat (UWG4-4999)",
    "nJoy WiFi LED Touch Programmable Thermostat (UDG5-4999-WY)",
    "Other"
  ]
end

.experience_customer_supportObject



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

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

.experience_information_providedObject



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

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

.experience_installationObject



130
131
132
133
134
135
136
137
138
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 130

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

.experience_shippingObject



120
121
122
123
124
125
126
127
128
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 120

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

.installation_typeObject



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 141

def self.installation_type
  [
    "LAVA® Glass (250W)",
    "LAVA® Glass (500W)",
    "LAVA® Glass (750W)",
    "LAVA® Glass (1000W)",
    "LAVA® Mirror (250W)",
    "LAVA® Mirror (500W)",
    "LAVA® Mirror (750W)",
    "LAVA® Mirror (1000W)",
    "LAVA® Light (350W)",
    "LAVA® Light (500W)",
    "LAVA® Crystal (350W)",
    "LAVA® Crystal (500W)",
    "LAVA® Crystal (1000W)",
    "Ember Mirror (600W)",
    "Ember Glass (600W)",
    "Ember Glass (800W)",
    "Ember Flex (300W)",
    "Ember Flex (500W)",
    "Ember Flex (700W)",
    "Other"
  ]
end

.installer_typeObject



166
167
168
169
170
171
172
173
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 166

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

.purchase_sourceObject



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

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

Instance Method Details

#email_addressObject



175
176
177
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 175

def email_address
  homeowner_email_address
end

#toObject



179
180
181
# File 'app/models/mail_form/warranty_radiant_panel.rb', line 179

def to
  "info@warmlyyours.com"
end