Class: RoutesCoverage::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/routes_coverage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSettings

Returns a new instance of Settings.



27
28
29
30
31
32
33
# File 'lib/routes_coverage.rb', line 27

def initialize
  @exclude_patterns = []
  @exclude_namespaces = []
  @minimum_coverage = 80
  @round_precision = 1
  @format = :summary_text
end

Instance Attribute Details

#exclude_namespacesObject (readonly)

Returns the value of attribute exclude_namespaces.



21
22
23
# File 'lib/routes_coverage.rb', line 21

def exclude_namespaces
  @exclude_namespaces
end

#exclude_patternsObject (readonly)

Returns the value of attribute exclude_patterns.



20
21
22
# File 'lib/routes_coverage.rb', line 20

def exclude_patterns
  @exclude_patterns
end

#formatObject

Returns the value of attribute format.



25
26
27
# File 'lib/routes_coverage.rb', line 25

def format
  @format
end

#minimum_coverageObject

Returns the value of attribute minimum_coverage.



22
23
24
# File 'lib/routes_coverage.rb', line 22

def minimum_coverage
  @minimum_coverage
end

#round_precisionObject

Returns the value of attribute round_precision.



23
24
25
# File 'lib/routes_coverage.rb', line 23

def round_precision
  @round_precision
end