Class: Xcov::Range
- Inherits:
-
Object
- Object
- Xcov::Range
- Defined in:
- lib/xcov/model/range.rb
Instance Attribute Summary collapse
-
#execution_count ⇒ Object
readonly
Returns the value of attribute execution_count.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Class Method Summary collapse
-
.map(dictionary) ⇒ Object
Class methods.
Instance Method Summary collapse
-
#initialize(execution_count, location, length) ⇒ Range
constructor
A new instance of Range.
Constructor Details
#initialize(execution_count, location, length) ⇒ Range
Returns a new instance of Range.
8 9 10 11 12 |
# File 'lib/xcov/model/range.rb', line 8 def initialize(execution_count, location, length) @execution_count = execution_count @location = location @length = length end |
Instance Attribute Details
#execution_count ⇒ Object (readonly)
Returns the value of attribute execution_count.
4 5 6 |
# File 'lib/xcov/model/range.rb', line 4 def execution_count @execution_count end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
6 7 8 |
# File 'lib/xcov/model/range.rb', line 6 def length @length end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/xcov/model/range.rb', line 5 def location @location end |