class Excelsieur::Result
Attributes
errors[RW]
report[RW]
Public Class Methods
new(total_rows)
click to toggle source
# File lib/excelsieur/result.rb, line 13 def initialize(total_rows) self.errors = { missing_column: [], model: [] } self.report = Report.new(total_rows) end
Public Instance Methods
failed?()
click to toggle source
# File lib/excelsieur/result.rb, line 31 def failed? status == Result::Statuses::FAILED end
status()
click to toggle source
# File lib/excelsieur/result.rb, line 21 def status return Statuses::FAILED if errors[:missing_column].any? || errors[:model].any? if report.done? Statuses::SUCCEEDED else Statuses::PENDING end end