Sha256: 4442cd8c8b74a2e2bc4122db5146b060e2c4107e2557766f1284776374d86a62
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
module Scrivito class ObjCreateParamsParser < Struct.new(:host, :port) include ObjParamsParser private def convert_params(params) if obj_class_name = params['_obj_class'] model_class = Obj.type_computer.compute_type(obj_class_name) convert_field_params(params, model_class.attribute_definitions) else raise ArgumentError, 'Missing "_obj_class" param' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems