def map_to(klass, **opts)
      with(opts.merge(auto_map: false, auto_struct: true, meta: { model: klass }))
    end
def map_to(klass, **opts)
      with(opts.merge(auto_map: false, auto_struct: true, meta: { model: klass }))
    end
def map_to ( klass , ** opts ) with ( opts . merge ( auto_map : false , auto_struct : true , meta : { model : klass } ) ) end
Return a new relation that will map its tuples to instances of the provided class

 @example
   users.map_to(MyUserModel)

 @param [Class] klass Your custom model class

 @return [Relation]

 @api public
Return a new relation that will map its tuples to instances of the provided class