Class: Wizardry::Questions::Date

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

Overview

Ask a date question

Instance Attribute Summary

Attributes inherited from Answer

#name

Instance Method Summary collapse

Methods inherited from Answer

#extra_args, #extra_kwargs

Constructor Details

#initialize(name) ⇒ Date

Returns a new instance of Date.



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

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

Instance Method Details

#form_methodObject



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

def form_method
  :govuk_date_field
end