Class: Pact::Generator::DateTime
- Defined in:
- lib/pact/generator/datetime.rb
Overview
DateTime provides the time generator which will give the current date time in the defined format
Instance Method Summary collapse
Methods inherited from Date
#call, #can_generate?, #convert_from_java_simple_date_format
Instance Method Details
#default_format ⇒ Object
11 12 13 |
# File 'lib/pact/generator/datetime.rb', line 11 def default_format 'yyyy-MM-dd HH:mm' end |
#type ⇒ Object
7 8 9 |
# File 'lib/pact/generator/datetime.rb', line 7 def type 'DateTime' end |