Class: Html2rss::PageRecon::Assessment

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

Overview

Cheap surface + admission facts shared by AutoFallback gates and FeedResolution probes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#admission_dropsObject (readonly)

Returns the value of attribute admission_drops

Returns:

  • (Object)

    the current value of admission_drops



12
13
14
# File 'lib/html2rss/page_recon.rb', line 12

def admission_drops
  @admission_drops
end

#articles_countObject (readonly)

Returns the value of attribute articles_count

Returns:

  • (Object)

    the current value of articles_count



12
13
14
# File 'lib/html2rss/page_recon.rb', line 12

def articles_count
  @articles_count
end

#html_responseObject (readonly)

Returns the value of attribute html_response

Returns:

  • (Object)

    the current value of html_response



12
13
14
# File 'lib/html2rss/page_recon.rb', line 12

def html_response
  @html_response
end

#surface_categoryObject (readonly)

Returns the value of attribute surface_category

Returns:

  • (Object)

    the current value of surface_category



12
13
14
# File 'lib/html2rss/page_recon.rb', line 12

def surface_category
  @surface_category
end

Instance Method Details

#blocked?Boolean

Returns:

  • (Boolean)


23
# File 'lib/html2rss/page_recon.rb', line 23

def blocked? = category.blocked?

#categoryHtml2rss::SurfaceCategory



15
# File 'lib/html2rss/page_recon.rb', line 15

def category = SurfaceCategory.coerce(surface_category)

#listing_bonus?Boolean

Returns:

  • (Boolean)


27
# File 'lib/html2rss/page_recon.rb', line 27

def listing_bonus? = category.listing_bonus?

#weak?Boolean

Returns:

  • (Boolean)


19
# File 'lib/html2rss/page_recon.rb', line 19

def weak? = category.weak?