class Goodsheet::ValidationError

Public Class Methods

new(line, val_err) click to toggle source
# File lib/goodsheet/validation_error.rb, line 5
def initialize(line, val_err)
  @line = line
  @val_err = val_err.full_messages.join(', ')
end

Public Instance Methods

to_s() click to toggle source
# File lib/goodsheet/validation_error.rb, line 10
def to_s
  "Row #{@line} is not valid: #{@val_err}"
end