Class: Wizardry::Questions::EmailAddress
- Defined in:
- lib/wizardry/questions/email_address.rb
Overview
Ask a respondant for an email address
Instance Attribute Summary
Attributes inherited from Answer
Instance Method Summary collapse
- #form_method ⇒ Object
-
#initialize(name) ⇒ EmailAddress
constructor
A new instance of EmailAddress.
Methods inherited from Answer
Constructor Details
#initialize(name) ⇒ EmailAddress
Returns a new instance of EmailAddress.
5 6 7 8 |
# File 'lib/wizardry/questions/email_address.rb', line 5 def initialize(name) Rails.logger.debug("🧙 Adding email address question '#{name}'") super end |
Instance Method Details
#form_method ⇒ Object
10 11 12 |
# File 'lib/wizardry/questions/email_address.rb', line 10 def form_method :govuk_email_field end |