lib/eco/api/common/people/person_entry.rb in eco-helpers-2.5.10 vs lib/eco/api/common/people/person_entry.rb in eco-helpers-2.6.0

- old
+ new

@@ -1,10 +1,11 @@ module Eco module API module Common module People class PersonEntry + DEBUG = false # This class is meant to provide a common interface to access entries of source data that come in different formats. # @note # - if `data` is a `Person` object, its behaviour is `serialise`. # - if `data` is **not** a `Person` object, it does a `parse`. @@ -35,9 +36,11 @@ @final_entry = __final_entry(@person) @internal_entry = __internal_entry(@final_entry) @mapped_entry = __mapped_entry(@internal_entry) @external_entry = __external_entry(@mapped_entry) end + + (print_models; exit(1)) if DEBUG end # Generates a new entry # @return [PersonEntry] def new(data)