Class: NoSE::Serialize::ModelBuilder

Inherits:
Object
  • Object
show all
Includes:
Uber::Callable
Defined in:
lib/nose/serialize.rb

Instance Method Summary collapse

Instance Method Details

#call(_, input:, fragment:) ⇒ Object



508
509
510
511
512
513
514
# File 'lib/nose/serialize.rb', line 508

def call(_, input:, fragment:, **)
  model = input.represented
  entity_map = add_entities model, fragment['entities']
  add_reverse_foreign_keys entity_map, fragment['entities']

  model
end