Sha256: 1e6ac1cb7ffb5445f66ab8191e00951e29014d081ac56ee073bcaff5b8e914d2

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

module HS
  module ReviewStatus
    # Possible values for review status:
    #
    # - `none` not reviewed and/or not translated, needs edit or translation
    # - `translated` initial translatation was done, needs edit
    # - `first` first editorial review was done
    # - `second` second editorial review was done
    # - `final` final editorial review was done
    REVIEW_STATUSES = %w[none translated first second final].freeze

    attr_writer :review_status

    def review_status
      return 'none' unless REVIEW_STATUSES.include?(@review_status)
      @review_status
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hs-cli-0.3.3 lib/hs/models/review_status.rb
hs-cli-0.3.2 lib/hs/models/review_status.rb
hs-cli-0.3.1 lib/hs/models/review_status.rb
hs-cli-0.3.0 lib/hs/models/review_status.rb