Class: MailForm::QuoteRequestComplex

Inherits:
ContactForm
  • Object
show all
Defined in:
app/models/mail_form/quote_request_complex.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

.project_application_typeObject



85
86
87
88
89
90
91
92
93
94
95
# File 'app/models/mail_form/quote_request_complex.rb', line 85

def self.project_application_type
  [
    "Floor Heating",
    "Snow Melting",
    "Roof & Gutter Deicing",
    "Towel Warmers",
    "Infrared Heating Panels",
    "Mirrors & Defoggers",
    "Countertop Heating"
  ]
end

.project_company_typeObject



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'app/models/mail_form/quote_request_complex.rb', line 63

def self.project_company_type
  [
    "Architect",
    "Builder/Developer/HomeBuilder",
    "Civil Engineer",
    "Contractor",
    "Designer",
    "Electrical Engineer",
    "Electrician",
    "HVAC",
    "Industrial Maintenance Engineer",
    "K&B Showroom",
    "Manufacturer",
    "Property Management",
    "Radiant Dealer",
    "Real Estate",
    "Retailer",
    "Wholesale Distributor",
    "Other"
  ]
end

.project_floor_type_indoorObject



118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'app/models/mail_form/quote_request_complex.rb', line 118

def self.project_floor_type_indoor
  [
    "Tile, Marble or Stone",
    "Bamboo (Floating)",
    "Bamboo (Glued)",
    "Carpet (Glued)",
    "Carpet (Stretch In)",
    "Cork",
    "Engineered Wood (Floating)",
    "Engineered Wood (Glued)",
    "Engineered Wood (Nailed)",
    "Hard Wood (Glued)",
    "Hard Wood (Nailed)",
    "Laminate Wood (Click Together Floating)",
    "Laminate Wood (Glued Together Floating)",
    "Laminate Wood (Nailed)",
    "Resilients, Vinyl and Luxury Vinyl Tile (LVT)",
    "Other"
  ]
end

.project_floor_type_outdoorObject



139
140
141
142
143
144
145
# File 'app/models/mail_form/quote_request_complex.rb', line 139

def self.project_floor_type_outdoor
  %w[
    Asphalt
    Concrete
    Pavers
  ]
end

.project_room_type_indoorObject



97
98
99
100
101
102
103
104
105
106
# File 'app/models/mail_form/quote_request_complex.rb', line 97

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

.project_room_type_outdoorObject



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

def self.project_room_type_outdoor
  %w[
    Driveway
    Walkway
    Stairs
    Patio
    Other
  ]
end

Instance Method Details

#email_addressObject



59
60
61
# File 'app/models/mail_form/quote_request_complex.rb', line 59

def email_address
  project_email
end

#toObject



55
56
57
# File 'app/models/mail_form/quote_request_complex.rb', line 55

def to
  "info@warmlyyours.com"
end