Class: Html2rss::PageRecon::Diagnostics::Report

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

Overview

Typed diagnostic report for inspect wire payloads and Outcome policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



11
12
13
# File 'lib/html2rss/page_recon/diagnostics.rb', line 11

def data
  @data
end

Instance Method Details

#alternate_feeds?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/html2rss/page_recon/diagnostics.rb', line 14

def alternate_feeds?
  Array(data[:alternate_feeds]).any?
end

#articles_countInteger

Returns:

  • (Integer)


20
21
22
# File 'lib/html2rss/page_recon/diagnostics.rb', line 20

def articles_count
  data[:articles_count].to_i
end

#to_wire_hHash{Symbol => Object}

Returns:

  • (Hash{Symbol => Object})


26
27
28
# File 'lib/html2rss/page_recon/diagnostics.rb', line 26

def to_wire_h
  data
end