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



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

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

.project_company_typeObject



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

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



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

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



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

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

.project_room_type_indoorObject



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

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

.project_room_type_outdoorObject



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

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

Instance Method Details

#email_addressObject



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

def email_address
  project_email
end

#toObject



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

def to
  "info@warmlyyours.com"
end