class URI::GID

def create(app, model, params = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

def create: (String app, Multitoken model, ?Hash params) -> URI::GID

This signature was generated using 2 samples from 1 application.

URI::GID.create('bcx', Person.find(5), database: 'superhumans')

Shorthand to build a URI::GID from an app, a model and optional params.
def create(app, model, params = nil)
  build app: app, model_name: model.class.name, model_id: model.id, params: params
end