Method: ROM::Factory::TupleEvaluator#initialize

Defined in:
lib/rom/factory/tuple_evaluator.rb

#initialize(attributes, relation, traits = {}) ⇒ TupleEvaluator

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.

Returns a new instance of TupleEvaluator.



45
46
47
48
49
50
# File 'lib/rom/factory/tuple_evaluator.rb', line 45

def initialize(attributes, relation, traits = {})
  @attributes = attributes
  @relation = relation.with(auto_struct: true)
  @traits = traits
  @sequence = Sequences[relation]
end