Class: Html2rss::Doctor::Botasaurus::Result

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

Overview

Aggregate doctor command outcome.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checksObject (readonly)

Returns the value of attribute checks

Returns:

  • (Object)

    the current value of checks



25
26
27
# File 'lib/html2rss/doctor/botasaurus.rb', line 25

def checks
  @checks
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



25
26
27
# File 'lib/html2rss/doctor/botasaurus.rb', line 25

def message
  @message
end

#okObject (readonly)

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



25
26
27
# File 'lib/html2rss/doctor/botasaurus.rb', line 25

def ok
  @ok
end

Instance Method Details

#to_hHash{Symbol => Object}

Returns:

  • (Hash{Symbol => Object})


28
29
30
# File 'lib/html2rss/doctor/botasaurus.rb', line 28

def to_h
  { ok:, message:, checks: checks.map(&:to_h) }
end