Class: Html2rss::Scoring::Score

Inherits:
Data
  • Object
show all
Defined in:
lib/html2rss/scoring/score.rb

Overview

Composite score with quality/junk split and optional typed feature breakdown.

Constant Summary collapse

EMPTY_BREAKDOWN =

Shared empty feature breakdown for scores without per-feature tallies.

{}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#breakdownObject (readonly)

Returns the value of attribute breakdown

Returns:

  • (Object)

    the current value of breakdown



7
8
9
# File 'lib/html2rss/scoring/score.rb', line 7

def breakdown
  @breakdown
end

#compositeObject (readonly)

Returns the value of attribute composite

Returns:

  • (Object)

    the current value of composite



7
8
9
# File 'lib/html2rss/scoring/score.rb', line 7

def composite
  @composite
end

#junkObject (readonly)

Returns the value of attribute junk

Returns:

  • (Object)

    the current value of junk



7
8
9
# File 'lib/html2rss/scoring/score.rb', line 7

def junk
  @junk
end

#qualityObject (readonly)

Returns the value of attribute quality

Returns:

  • (Object)

    the current value of quality



7
8
9
# File 'lib/html2rss/scoring/score.rb', line 7

def quality
  @quality
end