Sha256: 6f485f18213804393e68a4c59451899c314310ec3e22f756b64a444833ab8a68

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module Popolo
  # An issued identifier.
  class Identifier
    include Mongoid::Document

    embedded_in :identifiable, polymorphic: true

    # An issued identifier, e.g. a DUNS number.
    field :identifier, type: String
    # An identifier scheme, e.g. DUNS.
    field :scheme, type: String

    validates_presence_of :identifier
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
popolo-0.1.1 app/models/popolo/identifier.rb
popolo-0.1.0 app/models/popolo/identifier.rb
popolo-0.0.3 app/models/popolo/identifier.rb