Class: RoutesCoverage::Settings
- Inherits:
-
Object
- Object
- RoutesCoverage::Settings
- Defined in:
- lib/routes_coverage.rb
Instance Attribute Summary collapse
-
#exclude_namespaces ⇒ Object
readonly
Returns the value of attribute exclude_namespaces.
-
#exclude_patterns ⇒ Object
readonly
Returns the value of attribute exclude_patterns.
-
#format ⇒ Object
Returns the value of attribute format.
-
#minimum_coverage ⇒ Object
Returns the value of attribute minimum_coverage.
-
#round_precision ⇒ Object
Returns the value of attribute round_precision.
Instance Method Summary collapse
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize ⇒ Settings
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_namespaces ⇒ Object (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_patterns ⇒ Object (readonly)
Returns the value of attribute exclude_patterns.
20 21 22 |
# File 'lib/routes_coverage.rb', line 20 def exclude_patterns @exclude_patterns end |
#format ⇒ Object
Returns the value of attribute format.
25 26 27 |
# File 'lib/routes_coverage.rb', line 25 def format @format end |
#minimum_coverage ⇒ Object
Returns the value of attribute minimum_coverage.
22 23 24 |
# File 'lib/routes_coverage.rb', line 22 def minimum_coverage @minimum_coverage end |
#round_precision ⇒ Object
Returns the value of attribute round_precision.
23 24 25 |
# File 'lib/routes_coverage.rb', line 23 def round_precision @round_precision end |