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



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

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

.project_company_typeObject



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

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



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

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



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

def self.project_floor_type_outdoor
  [
    "Asphalt",
    "Concrete",
    "Pavers"
  ]
end

.project_room_type_indoorObject



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

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

.project_room_type_outdoorObject



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

def self.project_room_type_outdoor
  [
    "Driveway",
    "Walkway",
    "Stairs",
    "Patio",
    "Other"
  ]
end

Instance Method Details

#email_addressObject



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

def email_address
  project_email
end

#toObject



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

def to
  "info@warmlyyours.com"
end