class Bookwatch::Subnav::SubnavGeneratorFactory

Attributes

fs[R]
output_locations[R]

Public Class Methods

new(fs, output_locations) click to toggle source
# File lib/bookwatch/subnav/subnav_generator_factory.rb, line 7
def initialize(fs, output_locations)
  @fs = fs
  @output_locations = output_locations
end

Public Instance Methods

produce(json_generator) click to toggle source
# File lib/bookwatch/subnav/subnav_generator_factory.rb, line 12
def produce(json_generator)
  SubnavGenerator.new(json_generator, template_creator, pdf_config_creator, output_locations)
end

Private Instance Methods

pdf_config_creator() click to toggle source
# File lib/bookwatch/subnav/subnav_generator_factory.rb, line 24
def pdf_config_creator
  @pdf_config_creator ||= PdfConfigCreator.new(fs, output_locations)
end
template_creator() click to toggle source
# File lib/bookwatch/subnav/subnav_generator_factory.rb, line 20
def template_creator
  @template_creator ||= TemplateCreator.new(fs, output_locations)
end