Class: RelatonIeee::DocumentStatus::Stage
- Inherits:
-
RelatonBib::DocumentStatus::Stage
- Object
- RelatonBib::DocumentStatus::Stage
- RelatonIeee::DocumentStatus::Stage
- Defined in:
- lib/relaton_ieee/document_status.rb
Constant Summary collapse
- STAGES =
%w[draft approved superseded withdrawn].freeze
Instance Method Summary collapse
-
#initialize(value:, abbreviation: nil) ⇒ Stage
constructor
A new instance of Stage.
Constructor Details
#initialize(value:, abbreviation: nil) ⇒ Stage
Returns a new instance of Stage.
6 7 8 9 10 11 |
# File 'lib/relaton_ieee/document_status.rb', line 6 def initialize(value:, abbreviation: nil) unless STAGES.include?(value.downcase) Util.warn "Stage value must be one of: `#{STAGES.join('`, `')}`" end super end |