Class: Pact::Generator::DateTime

Inherits:
Date
  • Object
show all
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_formatObject



11
12
13
# File 'lib/pact/generator/datetime.rb', line 11

def default_format
  'yyyy-MM-dd HH:mm'
end

#typeObject



7
8
9
# File 'lib/pact/generator/datetime.rb', line 7

def type
  'DateTime'
end