Method: ROM::ModelBuilder#call

Defined in:
lib/rom/model_builder.rb

#call(attrs) ⇒ Class

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Build a model class supporting specific attributes

Returns:

  • (Class)


76
77
78
79
80
# File 'lib/rom/model_builder.rb', line 76

def call(attrs)
  define_class(attrs)
  define_const if const_name
  @klass
end