Sha256: 3c9d5e7a7d24916cb4a7a50ecc92b4929638f8c37823b6f958b8aa2d99f5fc1e
Contents?: true
Size: 603 Bytes
Versions: 5
Compression:
Stored size: 603 Bytes
Contents
require 'activefacts/api' module ::Marriage class Name < String value_type end class Person identified_by :given_name, :family_name has_one :family_name, :class => Name, :mandatory => true # See Name.all_person_as_family_name has_one :given_name, :class => Name, :mandatory => true # See Name.all_person_as_given_name end class Marriage identified_by :husband, :wife has_one :husband, :class => Person, :mandatory => true # See Person.all_marriage_as_husband has_one :wife, :class => Person, :mandatory => true # See Person.all_marriage_as_wife end end
Version data entries
5 entries across 5 versions & 1 rubygems