Class: Watchr::FlayMetric::Diff
- Inherits:
-
Object
- Object
- Watchr::FlayMetric::Diff
- Defined in:
- lib/watchr/flay_metric/diff.rb
Constant Summary collapse
- IDENTICAL =
:identical
- SIMILAR =
:similar
Instance Attribute Summary collapse
-
#bonus ⇒ Object
readonly
Returns the value of attribute bonus.
-
#code ⇒ Object
Returns the value of attribute code.
-
#locations ⇒ Object
readonly
Returns the value of attribute locations.
-
#mass ⇒ Object
readonly
Returns the value of attribute mass.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Instance Method Summary collapse
- #add_location(location) ⇒ Object
-
#initialize(same, nodes, bonus, mass) ⇒ Diff
constructor
A new instance of Diff.
Constructor Details
Instance Attribute Details
#bonus ⇒ Object (readonly)
Returns the value of attribute bonus.
8 9 10 |
# File 'lib/watchr/flay_metric/diff.rb', line 8 def bonus @bonus end |
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/watchr/flay_metric/diff.rb', line 8 def code @code end |
#locations ⇒ Object (readonly)
Returns the value of attribute locations.
8 9 10 |
# File 'lib/watchr/flay_metric/diff.rb', line 8 def locations @locations end |
#mass ⇒ Object (readonly)
Returns the value of attribute mass.
8 9 10 |
# File 'lib/watchr/flay_metric/diff.rb', line 8 def mass @mass end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
8 9 10 |
# File 'lib/watchr/flay_metric/diff.rb', line 8 def match @match end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
8 9 10 |
# File 'lib/watchr/flay_metric/diff.rb', line 8 def nodes @nodes end |
Instance Method Details
#add_location(location) ⇒ Object
18 19 20 |
# File 'lib/watchr/flay_metric/diff.rb', line 18 def add_location(location) @locations << location end |