Sha256: b869a98f4b86458d7b8953765eb5ddbe698e62282f2de0828bdf907df91db2fc

Contents?: true

Size: 1.13 KB

Versions: 12

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

require 'iso_bib_item/document_status'
require 'iso_bib_item/localized_string'

module IsoBibItem
  module IsoDocumentStageCodes
    PREELIMINARY = '00'
    PROPOSAL     = '10'
    PREPARATORY  = '20'
    COMMITTE     = '30'
    ENQUIRY      = '40'
    APPROVAL     = '50'
    PUBLICATION  = '60'
    REVIEW       = '90'
    WITHDRAWAL   = '95'
  end

  module IsoDocumentSubstageCodes
    REGISTRATION              = '00'
    START_OF_MAIN_ACTION      = '20'
    COMPLETION_OF_MAIN_ACTION = '60'
    REPEAT_AN_EARLIER_PHASE   = '92'
    REPEAT_CURRENT_PHASE      = '92'
    ABADON                    = '98'
    PROCEED                   = '99'
  end

  # ISO Document status.
  class IsoDocumentStatus < DocumentStatus
    # @return [IsoDocumentStageCodes]
    attr_accessor :stage

    # @return [IsoDocumentSubstageCodes]
    attr_accessor :substage

    # @param status [String]
    # @param stage [IsoDocumentStageCodes]
    # @param substage [IsoDocumentSubstageCodes]
    def initialize(status:, stage:, substage:)
      super LocalizedString.new(status)
      @stage    = stage
      @substage = substage
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
iso-bib-item-0.1.11 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.10 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.9 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.8 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.7 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.6 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.5 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.4 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.3 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.2 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.1 lib/iso_bib_item/iso_document_status.rb
iso-bib-item-0.1.0 lib/iso_bib_item/iso_document_status.rb