Class: Pact::Generators::TimeGenerator

Inherits:
DateGenerator show all
Defined in:
lib/pact/generators/base.rb

Overview

Time provides the time generator which will give the current time in the defined format

Instance Method Summary collapse

Methods inherited from DateGenerator

#as_basic, #convert_from_java_simple_date_format, #initialize

Methods included from Base

#as_basic

Constructor Details

This class inherits a constructor from Pact::Generators::DateGenerator

Instance Method Details

#default_formatObject



213
214
215
# File 'lib/pact/generators/base.rb', line 213

def default_format
  'HH:mm'
end

#matcher_typeObject



209
210
211
# File 'lib/pact/generators/base.rb', line 209

def matcher_type
  'time'
end

#typeObject



205
206
207
# File 'lib/pact/generators/base.rb', line 205

def type
  'Time'
end