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.2.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.1.1 lib/health-data-standards/models/personable.rb
health-data-standards-3.1.0 lib/health-data-standards/models/personable.rb
health-data-standards-3.0.6 lib/health-data-standards/models/personable.rb
health-data-standards-3.0.5 lib/health-data-standards/models/personable.rb
health-data-standards-3.0.4 lib/health-data-standards/models/personable.rb
health-data-standards-3.0.3 lib/health-data-standards/models/personable.rb
health-data-standards-2.2.1 lib/health-data-standards/models/personable.rb
health-data-standards-2.2.0 lib/health-data-standards/models/personable.rb
health-data-standards-2.1.4 lib/health-data-standards/models/personable.rb
health-data-standards-2.1.3 lib/health-data-standards/models/personable.rb
health-data-standards-2.1.2 lib/health-data-standards/models/personable.rb
health-data-standards-2.1.1 lib/health-data-standards/models/personable.rb
health-data-standards-2.1.0 lib/health-data-standards/models/personable.rb
health-data-standards-2.0.0 lib/health-data-standards/models/personable.rb
health-data-standards-1.0.1 lib/health-data-standards/models/personable.rb
health-data-standards-1.0.0 lib/health-data-standards/models/personable.rb