Class: Html2rss::PageRecon::Diagnostics::Report
- Inherits:
-
Data
- Object
- Data
- Html2rss::PageRecon::Diagnostics::Report
- Defined in:
- lib/html2rss/page_recon/diagnostics.rb
Overview
Typed diagnostic report for inspect wire payloads and Outcome policy.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
11 12 13 |
# File 'lib/html2rss/page_recon/diagnostics.rb', line 11 def data @data end |
Instance Method Details
#alternate_feeds? ⇒ Boolean
14 15 16 |
# File 'lib/html2rss/page_recon/diagnostics.rb', line 14 def alternate_feeds? Array(data[:alternate_feeds]).any? end |
#articles_count ⇒ Integer
20 21 22 |
# File 'lib/html2rss/page_recon/diagnostics.rb', line 20 def articles_count data[:articles_count].to_i end |
#to_wire_h ⇒ Hash{Symbol => Object}
26 27 28 |
# File 'lib/html2rss/page_recon/diagnostics.rb', line 26 def to_wire_h data end |