class GlobalID

def extract_uri_components(gid)

Pending a URI::GID to handle validation
def extract_uri_components(gid)
  @uri = gid.is_a?(URI) ? gid : URI.parse(gid)
  raise URI::BadURIError, "Not a gid:// URI scheme: #{@uri.inspect}" unless @uri.scheme == 'gid'
  if @uri.path =~ PATH_REGEXP
    @app = @uri.host
    @model_name = $1
    @model_id = $2
  else
    raise URI::InvalidURIError, "Expected a URI like gid://app/Person/1234: #{@uri.inspect}"
  end
end