class ROM::Session::State

@api private

Constants

TransitionError

Public Instance Methods

created?() click to toggle source

@api private

# File lib/rom/session/state.rb, line 28
def created?
  instance_of?(Created)
end
delete(*) click to toggle source

@api private

# File lib/rom/session/state.rb, line 18
def delete(*)
  raise TransitionError, "cannot delete object with #{self.class} state"
end
deleted?() click to toggle source

@api private

# File lib/rom/session/state.rb, line 43
def deleted?
  instance_of?(Deleted)
end
persisted?() click to toggle source

@api private

# File lib/rom/session/state.rb, line 33
def persisted?
  instance_of?(Persisted)
end
save(*) click to toggle source

@api private

# File lib/rom/session/state.rb, line 13
def save(*)
  raise TransitionError, "cannot save object with #{self.class} state"
end
transient?() click to toggle source

@api private

# File lib/rom/session/state.rb, line 23
def transient?
  instance_of?(Transient)
end
updated?() click to toggle source

@api private

# File lib/rom/session/state.rb, line 38
def updated?
  instance_of?(Updated)
end