Class: ReqresRspec::Writers::Html

Inherits:
Object
  • Object
show all
Defined in:
lib/reqres_rspec/writers/html.rb

Instance Method Summary collapse

Constructor Details

#initialize(records) ⇒ Html

Returns a new instance of Html.



4
5
6
# File 'lib/reqres_rspec/writers/html.rb', line 4

def initialize(records)
  @records = records
end

Instance Method Details

#writeObject



8
9
10
11
12
13
# File 'lib/reqres_rspec/writers/html.rb', line 8

def write
  recreate_doc_dir
  cleanup
  generate_header
  generate_specs
end