Class: Html2rss::Batch::BatchResult

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

Overview

Value object representing the outcome of a batch operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultsObject (readonly)

Returns the value of attribute results

Returns:

  • the current value of results



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

def results
  @results
end

#successfulObject (readonly)

Returns the value of attribute successful

Returns:

  • the current value of successful



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

def successful
  @successful
end

#totalObject (readonly)

Returns the value of attribute total

Returns:

  • the current value of total



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

def total
  @total
end

Instance Method Details

#to_hHash{Symbol => Object}

Returns:



17
18
19
# File 'lib/html2rss/batch.rb', line 17

def to_h
  { total:, successful:, results: }
end