Class: Html2rss::Batch::BatchResult
- Inherits:
-
Data
- Object
- Data
- Html2rss::Batch::BatchResult
- Defined in:
- lib/html2rss/batch.rb
Overview
Value object representing the outcome of a batch operation.
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#successful ⇒ Object
readonly
Returns the value of attribute successful.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results
14 15 16 |
# File 'lib/html2rss/batch.rb', line 14 def results @results end |
#successful ⇒ Object (readonly)
Returns the value of attribute successful
14 15 16 |
# File 'lib/html2rss/batch.rb', line 14 def successful @successful end |
#total ⇒ Object (readonly)
Returns the value of attribute total
14 15 16 |
# File 'lib/html2rss/batch.rb', line 14 def total @total end |
Instance Method Details
#to_h ⇒ Hash{Symbol => Object}
17 18 19 |
# File 'lib/html2rss/batch.rb', line 17 def to_h { total:, successful:, results: } end |