# typed: false # frozen_string_literal: true module PathParameter module YettoParameters extend T::Sig sig { returns(String) } def pparam_yetto_event yetto_path_params.fetch(:event, "") end sig { returns(String) } def pparam_yetto_record_type yetto_path_params.fetch(:record_type, "") end sig { returns(T::Hash[String, String]) } def yetto_path_params return {} if path_parameters.blank? { event: path_parameters.fetch(:event, ""), record_type: path_parameters.fetch(:record_type, ""), } end end end