Class: RelatonNist::DocumentStatus

Inherits:
RelatonBib::DocumentStatus
  • Object
show all
Defined in:
lib/relaton_nist/document_status.rb

Constant Summary collapse

STAGES =
%w[
  draft-internal draft-wip draft-prelim draft-public final final-review
].freeze
SUBSTAGES =
%w[active retired withdrawn].freeze

Instance Method Summary collapse

Constructor Details

#initialize(stage:, substage: nil, iteration: nil) ⇒ DocumentStatus

Returns a new instance of DocumentStatus.

Parameters:

  • stage (String)
  • substage (String, NilClass) (defaults to: nil)
  • iteration (String, NilClass) (defaults to: nil)


12
13
14
15
16
17
18
19
20
21
22
# File 'lib/relaton_nist/document_status.rb', line 12

def initialize(stage:, substage: nil, iteration: nil)
  # unless STAGES.include? stage
  #   raise ArgumentError, "invalid argument: stage (#{stage})"
  # end

  # if substage && !SUBSTAGES.include?(substage)
  #   raise ArgumentError, "invalid argument: substage (#{substage})"
  # end

  super
end