You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: names.rb
    path of file: ./repos/vets-api/modules/veteran/app/sidekiq/organizations
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'sentry
    
    def self.all
      orgs_data.map do |org|
        serialized_poa = serialize_poa(org[:poa])
        { poa: serialized_poa, name: org[:name] }
      rescue => e
        # Since SentryLogging is designed for instance methods, not class methods,
        # and we need to invoke these methods within a class method context, we instantiate a dummy_logger.
        # This dummy object includes SentryLogging, allowing us to use its logging capabilities without altering
        # the original module's design. This approach enables class-level logging by leveraging the module's
        # instance methods, ensuring we can log messages to Sentry from static (class) contexts while maintaining
        # the module's intended usage patterns.
        dummy_logger = Class.new { include SentryLogging }.new
        dummy_logger.log_message_to_sentry("Failed to serialize POA in Organizations::Names: #{e.message}. POA: '#{org[:poa]}', Org Name: '#{org[:name]}'.", 'error') # rubocop:disable Layout/LineLength
        next
      end.compact
    end

    def self.serialize_poa(poa)
      case poa.length
      when 3
        poa
      when 2
        "0#{poa}"
      when 1
        "00#{poa}"
      else
        raise StandardError, "Invalid POA format: #{poa}"
      end
    end