Class: MailForm::WarrantyShowerWaterproofingSystem

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

.drain_assembly_kitObject



156
157
158
159
160
161
162
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 156

def self.drain_assembly_kit
  [
    "Pro GEN II Shower Drain Assembly Kit - PVC Flange",
    "Pro GEN II Shower Drain Assembly Kit - ABS Flange",
    "Other"
  ]
end

.drain_grate_coverObject



164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 164

def self.drain_grate_cover
  [
    "Pro GEN II Grate Cover, Designer Series Pebbles Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Lattice Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Asterix Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Obelix Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Swirl Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Waves Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Bubbles Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Destil Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Ripples Pattern, Polished Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Pebbles Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Lattice Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Asterix Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Obelix Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Swirl Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Waves Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Bubbles Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Destil Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Designer Series Ripples Pattern, Brushed Stainless Steel",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Polished Black Finish",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Oil-rubbed Bronze Finish",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Matte Black Finish",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Copper Finish",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Polished Chrome Finish",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Brushed Nickel Finish",
    "Pro GEN II Grate Cover, Pro Series Brick Pattern, Antique Brass Finish",
    "Other"
  ]
end

.experience_customer_supportObject



204
205
206
207
208
209
210
211
212
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 204

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

.experience_information_providedObject



214
215
216
217
218
219
220
221
222
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 214

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

.experience_installationObject



234
235
236
237
238
239
240
241
242
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 234

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

.experience_shippingObject



224
225
226
227
228
229
230
231
232
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 224

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

.floor_heating_kitObject



195
196
197
198
199
200
201
202
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 195

def self.floor_heating_kit
  [
    'TempZone Electric Shower Floor Heating Kit - 32" x 60" - Offset Drain',
    'TempZone Electric Shower Floor Heating Kit - 48" x 48" - Center Drain',
    'TempZone Electric Shower Floor Heating Kit - 32" x 60" - Center Drain',
    'Other'
  ]
end

.installation_typeObject



256
257
258
259
260
261
262
263
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 256

def self.installation_type
  [
    "TempZone™ for Tile, Stone and Hardwood",
    "Environ II™ for Carpet and Laminate ",
    "Slab Heating for Concrete Slab",
    "Other"
  ]
end

.installer_typeObject



265
266
267
268
269
270
271
272
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 265

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

.purchase_sourceObject



123
124
125
126
127
128
129
130
131
132
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 123

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

.roll_floor_typeObject



134
135
136
137
138
139
140
141
142
143
144
145
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 134

def self.roll_floor_type
  [
    "Tile",
    "Carpet",
    "Marble",
    "Hardwood",
    "Laminate",
    "Vinyl",
    "PVC",
    "Other",
  ]
end

.roll_room_typeObject



244
245
246
247
248
249
250
251
252
253
254
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 244

def self.roll_room_type
  [
    "Bathroom",
    "Kitchen",
    "Bedroom",
    "Basement",
    "Sunroom",
    "Living Room",
    "Other",
  ]
end

.shower_pan_kitObject



147
148
149
150
151
152
153
154
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 147

def self.shower_pan_kit
  [
    'Pro GEN II 32" x 60" Tile Waterproofing Shower Pan Kit with Center Drain Hole',
    'Pro GEN II 32" x 60" Tile Waterproofing Shower Pan Kit with Offset Drain Hole',
    'Pro GEN II 48" x 48" Tile Waterproofing Shower Pan Kit with Center Drain Hole',
    'Other'
  ]
end

Instance Method Details

#email_addressObject



274
275
276
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 274

def email_address
  homeowner_email_address
end

#has_roll?(roll_number) ⇒ Boolean

Returns:

  • (Boolean)


282
283
284
285
286
287
288
289
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 282

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

#toObject



278
279
280
# File 'app/models/mail_form/warranty_shower_waterproofing_system.rb', line 278

def to
  "info@warmlyyours.com,warranty@pscamerica.com"
end