Class: Html2rss::Recon::Result
- Inherits:
-
Data
- Object
- Data
- Html2rss::Recon::Result
- Defined in:
- lib/html2rss/recon.rb
Overview
Immutable outcome of a reconnaissance operation.
Instance Attribute Summary collapse
-
#articles_count ⇒ Object
readonly
Returns the value of attribute articles_count.
-
#final_url ⇒ Object
readonly
Returns the value of attribute final_url.
-
#html_bytesize ⇒ Object
readonly
Returns the value of attribute html_bytesize.
-
#native_feed ⇒ Object
readonly
Returns the value of attribute native_feed.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#requested_url ⇒ Object
readonly
Returns the value of attribute requested_url.
-
#scheme_downgrade ⇒ Object
readonly
Returns the value of attribute scheme_downgrade.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#surface_category ⇒ Object
readonly
Returns the value of attribute surface_category.
-
#verdict ⇒ Object
readonly
Returns the value of attribute verdict.
Instance Method Summary collapse
- #build? ⇒ Boolean
- #defer? ⇒ Boolean
- #drop? ⇒ Boolean
- #native_feed? ⇒ Boolean
- #to_h ⇒ Hash{Symbol => Object}
Instance Attribute Details
#articles_count ⇒ Object (readonly)
Returns the value of attribute articles_count
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def articles_count @articles_count end |
#final_url ⇒ Object (readonly)
Returns the value of attribute final_url
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def final_url @final_url end |
#html_bytesize ⇒ Object (readonly)
Returns the value of attribute html_bytesize
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def html_bytesize @html_bytesize end |
#native_feed ⇒ Object (readonly)
Returns the value of attribute native_feed
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def native_feed @native_feed end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def notes @notes end |
#requested_url ⇒ Object (readonly)
Returns the value of attribute requested_url
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def requested_url @requested_url end |
#scheme_downgrade ⇒ Object (readonly)
Returns the value of attribute scheme_downgrade
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def scheme_downgrade @scheme_downgrade end |
#status ⇒ Object (readonly)
Returns the value of attribute status
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def status @status end |
#surface_category ⇒ Object (readonly)
Returns the value of attribute surface_category
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def surface_category @surface_category end |
#verdict ⇒ Object (readonly)
Returns the value of attribute verdict
64 65 66 |
# File 'lib/html2rss/recon.rb', line 64 def verdict @verdict end |
Instance Method Details
#build? ⇒ Boolean
78 |
# File 'lib/html2rss/recon.rb', line 78 def build? = verdict.build? |
#defer? ⇒ Boolean
82 |
# File 'lib/html2rss/recon.rb', line 82 def defer? = verdict.defer? |
#drop? ⇒ Boolean
86 |
# File 'lib/html2rss/recon.rb', line 86 def drop? = verdict.drop? |
#native_feed? ⇒ Boolean
90 |
# File 'lib/html2rss/recon.rb', line 90 def native_feed? = !native_feed.nil? |
#to_h ⇒ Hash{Symbol => Object}
94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/html2rss/recon.rb', line 94 def to_h # rubocop:disable Metrics/MethodLength { requested_url: requested_url.to_s, final_url: final_url.to_s, status:, verdict: verdict.to_sym, native_feed: native_feed&.to_s, surface_category: surface_category&.to_s, articles_count:, scheme_downgrade:, notes:, html_bytesize: }.compact end |