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: delivery_info.rb
    path of file: ./repos/bunny/lib/bunny
    
    the code of the file until where you have to start completion: require "bunny/versioned_delivery_tag"

module Bunny
  # Wraps {AMQ::Protocol::Basic::Deliver} to
  # provide access to the delivery properties as immutable hash as
  # well as methods.
  class DeliveryInfo

    #
    # Behaviors
    #

    include Enumerable

    #
    # API
    #

    # @return [Bunny::Consumer] Consumer th
    
    def initialize(basic_deliver, consumer, channel)
      @basic_deliver = basic_deliver
      @hash          = {
        :consumer_tag => basic_deliver.consumer_tag,
        :delivery_tag => VersionedDeliveryTag.new(basic_deliver.delivery_tag, channel.recoveries_counter),
        :redelivered  => basic_deliver.redelivered,
        :exchange     => basic_deliver.exchange,
        :routing_key  => basic_deliver.routing_key,
        :consumer     => consumer,
        :channel      => channel
      }
      @consumer      = consumer
      @channel       = channel
    end