lib/pupa/models/person.rb in pupa-0.0.8 vs lib/pupa/models/person.rb in pupa-0.0.9
- old
+ new
@@ -1,17 +1,22 @@
module Pupa
# A real person, alive or dead.
- class Person < Base
+ class Person
+ include Model
+
self.schema = 'popolo/person'
include Concerns::Timestamps
include Concerns::Sourceable
include Concerns::Nameable
include Concerns::Identifiable
include Concerns::Contactable
include Concerns::Linkable
attr_accessor :name, :family_name, :given_name, :additional_name,
+ :honorific_prefix, :honorific_suffix, :patronymic_name, :sort_name,
+ :email, :gender, :birth_date, :death_date, :image, :summary, :biography
+ dump :name, :family_name, :given_name, :additional_name,
:honorific_prefix, :honorific_suffix, :patronymic_name, :sort_name,
:email, :gender, :birth_date, :death_date, :image, :summary, :biography
# Returns the person's name.
#