Sha256: 0bb56ab1375b28ab8f683ddbce4b6b292d7efffa7346259bd12e206c9a68d12c
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
require 'api-tester/reporter/api_report' module ApiTester class Config attr_accessor :reporter attr_accessor :modules def initialize reporter=ApiTester::ApiReport.new self.reporter = reporter self.modules = [] end def with_reporter reporter self.reporter = reporter self end def with_module new_module self.modules << new_module self end def with_default_modules self.modules << Format.new self.modules << GoodCase.new self.modules << Typo.new self.modules << UnusedFields.new self end def with_all_modules self.modules << Format.new self.modules << ExtraVerbs.new self.modules << GoodCase.new self.modules << Typo.new self.modules << UnusedFields.new self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.3.1 | lib/api-tester/config.rb |
api-tester-0.3.0 | lib/api-tester/config.rb |
api-tester-0.2.0 | lib/api-tester/config.rb |