Sha256: 9cca359bc0737e0b22f7705a41954b6751841adfd967e1dcf2d394c1ca6a130a

Contents?: true

Size: 357 Bytes

Versions: 57

Compression:

Stored size: 357 Bytes

Contents

module Personable

  def self.included(receiver)
    receiver.send(:include, Mongoid::Document)
    
    receiver.field :title       , type: String
    receiver.field :given_name  , type: String
    receiver.field :family_name , type: String

    receiver.embeds_many :addresses, as: :locatable
    receiver.embeds_many :telecoms, as: :contactable
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
health-data-standards-3.5.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.6 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.5 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.4 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.3 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.2 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.1 lib/health-data-standards/models/personable.rb
health-data-standards-3.4.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.12 lib/health-data-standards/models/personable.rb
health-data-standards-3.3.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.11 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.10 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.8 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.7 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.6 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.5 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.4 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.3 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.2 lib/health-data-standards/models/personable.rb
health-data-standards-3.2.1 lib/health-data-standards/models/personable.rb