# frozen_string_literal: true module Meibo class Manifest class ProcessingMode attr_reader :mode def initialize(mode) @mode = mode freeze end def absent? @mode == "absent" end def bulk? @mode == "bulk" end def delta? @mode == "delta" end def ==(other) case other when ProcessingMode @mode == other.mode when String to_s == other else false end end def to_s @mode end end end end