class StatelyDB::KeyPath

def with(namespace, identifier = nil)

Returns:
  • (StatelyDB::KeyPath) -

Parameters:
  • identifier (String, StatelyDB::UUID, #to_s) --
  • namespace (String) --
def with(namespace, identifier = nil)
  if identifier.nil?
    @path << namespace
    return self
  end
  @path << "#{namespace}-#{self.class.to_key_id(identifier)}"
  self
end