Class: Wizardry::Questions::TelephoneNumber

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

Overview

Ask a respondant for a telephone number

Instance Attribute Summary

Attributes inherited from Answer

#name

Instance Method Summary collapse

Methods inherited from Answer

#extra_args, #extra_kwargs

Constructor Details

#initialize(name) ⇒ TelephoneNumber

Returns a new instance of TelephoneNumber.



5
6
7
8
# File 'lib/wizardry/questions/telephone_number.rb', line 5

def initialize(name)
  Rails.logger.debug("🧙 Adding telephone number question '#{name}'")
  super
end

Instance Method Details

#form_methodObject



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

def form_method
  :govuk_phone_field
end