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



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

def admission_drops
  @admission_drops
end

#alternate_feedsObject (readonly)

Returns the value of attribute alternate_feeds

Returns:

  • (Object)

    the current value of alternate_feeds



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

def alternate_feeds
  @alternate_feeds
end

#articles_countObject (readonly)

Returns the value of attribute articles_count

Returns:

  • (Object)

    the current value of articles_count



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

def articles_count
  @articles_count
end

#blocked_surfaceObject (readonly)

Returns the value of attribute blocked_surface

Returns:

  • (Object)

    the current value of blocked_surface



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

def blocked_surface
  @blocked_surface
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



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

def content_type
  @content_type
end

#final_urlObject (readonly)

Returns the value of attribute final_url

Returns:

  • (Object)

    the current value of final_url



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

def final_url
  @final_url
end

#html_responseObject (readonly)

Returns the value of attribute html_response

Returns:

  • (Object)

    the current value of html_response



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

def html_response
  @html_response
end

#requested_urlObject (readonly)

Returns the value of attribute requested_url

Returns:

  • (Object)

    the current value of requested_url



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

def requested_url
  @requested_url
end

#scheme_downgradeObject (readonly)

Returns the value of attribute scheme_downgrade

Returns:

  • (Object)

    the current value of scheme_downgrade



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

def scheme_downgrade
  @scheme_downgrade
end

#segment_statsObject (readonly)

Returns the value of attribute segment_stats

Returns:

  • (Object)

    the current value of segment_stats



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

def segment_stats
  @segment_stats
end

#sstObject (readonly)

Returns the value of attribute sst

Returns:

  • (Object)

    the current value of sst



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

def sst
  @sst
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

#surface_categoryObject (readonly)

Returns the value of attribute surface_category

Returns:

  • (Object)

    the current value of surface_category



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

def surface_category
  @surface_category
end

Instance Method Details

#to_hHash{Symbol => Object}

Returns:

  • (Hash{Symbol => Object})


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/html2rss/page_recon.rb', line 49

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