Class: RelatonIeee::DocumentStatus::Stage

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

Constant Summary collapse

STAGES =
%w[draft approved superseded withdrawn].freeze

Instance Method Summary collapse

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