Sha256: e60b5d46541e114f3dd0bb41d3857f56e0316727e90d14a93067dcf1057a5ef4

Contents?: true

Size: 384 Bytes

Versions: 22

Compression:

Stored size: 384 Bytes

Contents

#
# Easily serialize bad records in-band, for later analysis or to discard if
# neglectable.
#
# You can instantiate this as
#  success = do_stuff_to record
#  if ! success
#    return BadRecord.new("do_stuff_to-failed", record)
#  end
#
class BadRecord < Struct.new(
    :errors,
    :record
    )
  def initialize errors='', *record_fields
    super errors, record_fields
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
mrflip-wukong-0.1.0 lib/wukong/bad_record.rb
wukong-3.0.0.pre old/wukong/bad_record.rb
wukong-2.0.2 lib/wukong/bad_record.rb
wukong-2.0.1 lib/wukong/bad_record.rb
wukong-2.0.0 lib/wukong/bad_record.rb
wukong-1.5.4 lib/wukong/bad_record.rb
wukong-1.5.3 lib/wukong/bad_record.rb
wukong-1.5.2 lib/wukong/bad_record.rb
wukong-1.5.1 lib/wukong/bad_record.rb
wukong-1.5.0 lib/wukong/bad_record.rb
wukong-1.4.12 lib/wukong/bad_record.rb
wukong-1.4.11 lib/wukong/bad_record.rb
wukong-1.4.10 lib/wukong/bad_record.rb
wukong-1.4.9 lib/wukong/bad_record.rb
wukong-1.4.7 lib/wukong/bad_record.rb
wukong-1.4.6 lib/wukong/bad_record.rb
wukong-1.4.5 lib/wukong/bad_record.rb
wukong-1.4.2 lib/wukong/bad_record.rb
wukong-1.4.1 lib/wukong/bad_record.rb
wukong-1.4.0 lib/wukong/bad_record.rb