Class: Wizardry::Questions::TelephoneNumber
- Defined in:
- lib/wizardry/questions/telephone_number.rb
Overview
Ask a respondant for a telephone number
Instance Attribute Summary
Attributes inherited from Answer
Instance Method Summary collapse
- #form_method ⇒ Object
-
#initialize(name) ⇒ TelephoneNumber
constructor
A new instance of TelephoneNumber.
Methods inherited from Answer
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_method ⇒ Object
10 11 12 |
# File 'lib/wizardry/questions/telephone_number.rb', line 10 def form_method :govuk_phone_field end |