Class: Html2rss::PageRecon::Result
- Inherits:
-
Data
- Object
- Data
- Html2rss::PageRecon::Result
- Defined in:
- lib/html2rss/page_recon.rb
Overview
Recon facts used by Inspect and FeedResolution.
Instance Attribute Summary collapse
-
#admission_drops ⇒ Object
readonly
Returns the value of attribute admission_drops.
-
#alternate_feeds ⇒ Object
readonly
Returns the value of attribute alternate_feeds.
-
#articles_count ⇒ Object
readonly
Returns the value of attribute articles_count.
-
#blocked_surface ⇒ Object
readonly
Returns the value of attribute blocked_surface.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#final_url ⇒ Object
readonly
Returns the value of attribute final_url.
-
#html_response ⇒ Object
readonly
Returns the value of attribute html_response.
-
#requested_url ⇒ Object
readonly
Returns the value of attribute requested_url.
-
#scheme_downgrade ⇒ Object
readonly
Returns the value of attribute scheme_downgrade.
-
#segment_stats ⇒ Object
readonly
Returns the value of attribute segment_stats.
-
#sst ⇒ Object
readonly
Returns the value of attribute sst.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#surface_category ⇒ Object
readonly
Returns the value of attribute surface_category.
Instance Method Summary collapse
Instance Attribute Details
#admission_drops ⇒ Object (readonly)
Returns the value of attribute admission_drops
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def admission_drops @admission_drops end |
#alternate_feeds ⇒ Object (readonly)
Returns the value of attribute alternate_feeds
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def alternate_feeds @alternate_feeds end |
#articles_count ⇒ Object (readonly)
Returns the value of attribute articles_count
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def articles_count @articles_count end |
#blocked_surface ⇒ Object (readonly)
Returns the value of attribute blocked_surface
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def blocked_surface @blocked_surface end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def content_type @content_type end |
#final_url ⇒ Object (readonly)
Returns the value of attribute final_url
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def final_url @final_url end |
#html_response ⇒ Object (readonly)
Returns the value of attribute html_response
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def html_response @html_response end |
#requested_url ⇒ Object (readonly)
Returns the value of attribute requested_url
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def requested_url @requested_url end |
#scheme_downgrade ⇒ Object (readonly)
Returns the value of attribute scheme_downgrade
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def scheme_downgrade @scheme_downgrade end |
#segment_stats ⇒ Object (readonly)
Returns the value of attribute segment_stats
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def segment_stats @segment_stats end |
#sst ⇒ Object (readonly)
Returns the value of attribute sst
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def sst @sst end |
#status ⇒ Object (readonly)
Returns the value of attribute status
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def status @status end |
#surface_category ⇒ Object (readonly)
Returns the value of attribute surface_category
31 32 33 |
# File 'lib/html2rss/page_recon.rb', line 31 def surface_category @surface_category end |
Instance Method Details
#to_h ⇒ Hash{Symbol => Object}
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/html2rss/page_recon.rb', line 48 def to_h # rubocop:disable Metrics/AbcSize, Metrics/MethodLength -- omit-empty optional keys { requested_url:, final_url:, status:, scheme_downgrade:, alternate_feeds:, surface_category:, articles_count:, html_response:, content_type:, **(admission_drops.any? ? { admission_drops: } : {}), **(segment_stats ? { segment_stats: } : {}), **(blocked_surface ? { blocked_surface: } : {}), **(sst ? { sst: } : {}) } end |