Class: RelatonNist::DocumentStatus
- Inherits:
-
RelatonBib::DocumentStatus
- Object
- RelatonBib::DocumentStatus
- RelatonNist::DocumentStatus
- 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
-
#initialize(stage:, substage: nil, iteration: nil) ⇒ DocumentStatus
constructor
A new instance of DocumentStatus.
Constructor Details
#initialize(stage:, substage: nil, iteration: nil) ⇒ DocumentStatus
Returns a new instance of DocumentStatus.
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 |