class BrowserCrawler::Reports::YamlReport

It involves methods which allow to save a store to an yaml file

Public Class Methods

new(store:) click to toggle source
# File lib/browser_crawler/reports/yaml_report.rb, line 5
def initialize(store:)
  @store = store
end

Public Instance Methods

export(save_folder_path:) click to toggle source
# File lib/browser_crawler/reports/yaml_report.rb, line 9
def export(save_folder_path:)
  File.write("#{save_folder_path}/crawler_report.yaml",
             @store.to_h.to_yaml)
end