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: shipwire.rb
    path of file: ./repos/workarea/core/vendor/active_shipping/lib/active_shipping/carriers
    
    the code of the file until where you have to start completion: module ActiveShipping
  class Shipwire < Carrier
    self.retry_safe = true

    cattr_reader :name
    @@name = "Shipwire"

    URL = 'https://api.shipwire.com/exec/RateServices.php'
    SCHEMA_URL = 'http://www.shipwire.com/exec/download/RateRequest.dtd'
    WAREHOUSES = { 'CHI' => 'Chicago',
                   'LAX' => 'Los Angeles',
                   'REN' => 'Reno',
                   'VAN' => 'Vancouver',
                   'TOR' => 'Toronto',
                   'UK'  => 'United Kingdom'
                 }

    CARRIERS = ["UPS", "USPS", "FedEx", "Royal Mail", "Parcelforce", "Pharos",
    
    def parse(xml)
      response = {}
      response["rates"] = []

      document = Nokogiri.XML(xml)

      response["status"] = parse_child_text(document.root, "Status")

      document.root.xpath("Order/Quotes/Quote").each do |e|
        rate = {}
        rate["method"]    = e["method"]
        rate["warehouse"] = parse_child_text(e, "Warehouse")
        rate["service"]   = parse_child_text(e, "Service")
        rate["cost"]      = parse_child_text(e, "Cost")
        rate["currency"]  = parse_child_attribute(e, "Cost", "currency")
        if delivery_estimate = e.at("DeliveryEstimate")
          rate["delivery_min"]  = parse_child_text(delivery_estimate, "Minimum").to_i
          rate["delivery_max"]  = parse_child_text(delivery_estimate, "Maximum").to_i
        end
        response["rates"] << rate
      end