Sha256: 8ffe7db6df5db185e8bf39bd35beca635bea19b2e6822e440c11785407f16290
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
require "terrestrial/record" module Terrestrial class DeletedRecord < Record def initialize(mapping, attributes, depth) @mapping = mapping @attributes = attributes @depth = depth end attr_reader :mapping, :attributes, :depth def if_delete(&block) block.call(self) self end protected def new_with_attributes(new_attributes) self.class.new(mapping, new_attributes, depth) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terrestrial-0.5.0 | lib/terrestrial/deleted_record.rb |