Class: Pact::Generator::Time

Inherits:
Date
  • Object
show all
Defined in:
lib/pact/generator/time.rb

Overview

Time provides the time generator which will give the current 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/time.rb', line 11

def default_format
  'HH:mm'
end

#typeObject



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

def type
  'Time'
end