class Terrestrial::DeletedRecord

Attributes

attributes[R]
depth[R]
mapping[R]

Public Class Methods

new(mapping, attributes, depth) click to toggle source
# File lib/terrestrial/deleted_record.rb, line 5
def initialize(mapping, attributes, depth)
  @mapping = mapping
  @attributes = attributes
  @depth = depth
end

Public Instance Methods

if_delete(&block) click to toggle source
# File lib/terrestrial/deleted_record.rb, line 13
def if_delete(&block)
  block.call(self)
  self
end

Protected Instance Methods

new_with_attributes(new_attributes) click to toggle source
# File lib/terrestrial/deleted_record.rb, line 20
def new_with_attributes(new_attributes)
  self.class.new(mapping, new_attributes, depth)
end