# 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) if other.is_a?(ProcessingMode) @mode == other.mode elsif other.is_a?(String) to_s == other else false end end def to_s @mode end end end end