Class: Excelsieur::Report
- Inherits:
-
Struct
- Object
- Struct
- Excelsieur::Report
- Defined in:
- lib/excelsieur/report.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#inserted ⇒ Object
Returns the value of attribute inserted.
Instance Method Summary collapse
- #done? ⇒ Boolean
-
#initialize(*args) ⇒ Report
constructor
A new instance of Report.
- #total ⇒ Object
Constructor Details
#initialize(*args) ⇒ Report
Returns a new instance of Report.
5 6 7 8 9 10 11 |
# File 'lib/excelsieur/report.rb', line 5 def initialize(*args) super(*args) self.expected ||= 0 self.inserted ||= 0 self.failed ||= 0 end |
Instance Attribute Details
#expected ⇒ Object
Returns the value of attribute expected
4 5 6 |
# File 'lib/excelsieur/report.rb', line 4 def expected @expected end |
#failed ⇒ Object
Returns the value of attribute failed
4 5 6 |
# File 'lib/excelsieur/report.rb', line 4 def failed @failed end |
#inserted ⇒ Object
Returns the value of attribute inserted
4 5 6 |
# File 'lib/excelsieur/report.rb', line 4 def inserted @inserted end |
Instance Method Details
#done? ⇒ Boolean
17 18 19 |
# File 'lib/excelsieur/report.rb', line 17 def done? expected == total end |
#total ⇒ Object
13 14 15 |
# File 'lib/excelsieur/report.rb', line 13 def total inserted + failed end |