Sha256: 32d169b169931793b2f4e237578d6053f8eb04faa428c89e8e8a892851717f47

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

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

    embedded_in :organization, class_name: 'Popolo::Organization'

    # 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

2 entries across 2 versions & 1 rubygems

Version Path
popolo-0.0.2 app/models/popolo/identifier.rb
popolo-0.0.1 app/models/popolo/identifier.rb