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-4.3.5 lib/health-data-standards/models/personable.rb
health-data-standards-4.3.4 lib/health-data-standards/models/personable.rb
health-data-standards-4.3.3 lib/health-data-standards/models/personable.rb
health-data-standards-4.3.2 lib/health-data-standards/models/personable.rb
health-data-standards-4.3.1 lib/health-data-standards/models/personable.rb
health-data-standards-4.3.0 lib/health-data-standards/models/personable.rb
health-data-standards-4.2.0 lib/health-data-standards/models/personable.rb
health-data-standards-4.1.0 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.6 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.5 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.4 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.3 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.2 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.1 lib/health-data-standards/models/personable.rb
health-data-standards-4.0.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.7.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.6.1 lib/health-data-standards/models/personable.rb
health-data-standards-3.5.3 lib/health-data-standards/models/personable.rb
health-data-standards-3.5.2 lib/health-data-standards/models/personable.rb
health-data-standards-3.5.1 lib/health-data-standards/models/personable.rb