Class: Wizardry::Questions::EmailAddress

Inherits:
Answer
  • Object
show all
Defined in:
lib/wizardry/questions/email_address.rb

Overview

Ask a respondant for an email address

Instance Attribute Summary

Attributes inherited from Answer

#name

Instance Method Summary collapse

Methods inherited from Answer

#extra_args, #extra_kwargs

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_methodObject



10
11
12
# File 'lib/wizardry/questions/email_address.rb', line 10

def form_method
  :govuk_email_field
end