Class: Html2rss::PageRecon::Result

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

Overview

Recon facts used by Inspect and FeedResolution.

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



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def admission_drops
  @admission_drops
end

#alternate_feedsObject (readonly)

Returns the value of attribute alternate_feeds

Returns:

  • (Object)

    the current value of alternate_feeds



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def alternate_feeds
  @alternate_feeds
end

#articles_countObject (readonly)

Returns the value of attribute articles_count

Returns:

  • (Object)

    the current value of articles_count



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def articles_count
  @articles_count
end

#blocked_surfaceObject (readonly)

Returns the value of attribute blocked_surface

Returns:

  • (Object)

    the current value of blocked_surface



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def blocked_surface
  @blocked_surface
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def content_type
  @content_type
end

#final_urlObject (readonly)

Returns the value of attribute final_url

Returns:

  • (Object)

    the current value of final_url



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def final_url
  @final_url
end

#html_responseObject (readonly)

Returns the value of attribute html_response

Returns:

  • (Object)

    the current value of html_response



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def html_response
  @html_response
end

#requested_urlObject (readonly)

Returns the value of attribute requested_url

Returns:

  • (Object)

    the current value of requested_url



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def requested_url
  @requested_url
end

#scheme_downgradeObject (readonly)

Returns the value of attribute scheme_downgrade

Returns:

  • (Object)

    the current value of scheme_downgrade



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def scheme_downgrade
  @scheme_downgrade
end

#segment_statsObject (readonly)

Returns the value of attribute segment_stats

Returns:

  • (Object)

    the current value of segment_stats



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def segment_stats
  @segment_stats
end

#sstObject (readonly)

Returns the value of attribute sst

Returns:

  • (Object)

    the current value of sst



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def sst
  @sst
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def status
  @status
end

#surface_categoryObject (readonly)

Returns the value of attribute surface_category

Returns:

  • (Object)

    the current value of surface_category



31
32
33
# File 'lib/html2rss/page_recon.rb', line 31

def surface_category
  @surface_category
end

Instance Method Details

#to_hHash{Symbol => Object}

Returns:

  • (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