Sha256: d74457eba93a274a5a7b7275c0ef9e2637ed98368dd70d0af8a91e8b3ce66965
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
module Chicago module ETL module Screens class MissingValue < ColumnScreen def severity column.descriptive? ? 1 : 2 end def log_error(value, errors) if ! (column.column_type == :boolean || column.optional?) errors << error_hash(value) end end def applies?(value) value.nil? || (column.column_type == :string && value.blank?) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems