Class: MailForm::QuoteRequestSimple

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



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

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



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

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



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

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



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

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

.project_room_type_indoorObject



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

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

.project_room_type_outdoorObject



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

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

Instance Method Details

#email_addressObject



57
58
59
# File 'app/models/mail_form/quote_request_simple.rb', line 57

def email_address
  project_email
end

#toObject



53
54
55
# File 'app/models/mail_form/quote_request_simple.rb', line 53

def to
  "info@warmlyyours.com"
end