class ApiTester::Config

Config class for changing how the tool operates

Attributes

modules[RW]
reporter[RW]

Public Class Methods

new(reporter: ApiTester::ApiReport.new) click to toggle source
# File lib/api-tester/config.rb, line 11
def initialize(reporter: ApiTester::ApiReport.new)
  self.reporter = reporter
  self.modules = []
end

Public Instance Methods

with_all_modules() click to toggle source
# File lib/api-tester/config.rb, line 34
def with_all_modules
  modules << Format
  modules << ExtraVerbs
  modules << GoodCase
  modules << Typo
  modules << UnusedFields
  self
end
with_default_modules() click to toggle source
# File lib/api-tester/config.rb, line 26
def with_default_modules
  modules << Format
  modules << GoodCase
  modules << Typo
  modules << UnusedFields
  self
end
with_module(new_module) click to toggle source
# File lib/api-tester/config.rb, line 21
def with_module(new_module)
  modules << new_module
  self
end
with_reporter(reporter) click to toggle source
# File lib/api-tester/config.rb, line 16
def with_reporter(reporter)
  self.reporter = reporter
  self
end