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: pairs.rb
    path of file: ./repos/cryptoexchange/lib/cryptoexchange/exchanges/zaif/services
    
    the code of the file until where you have to start completion: module Cryptoexchange::Exchanges
  module Zaif
    mod
    
        def adapt(output)
          market_pairs = []
          output.each do |pair|
            market_pair = Cryptoexchange::Models::MarketPair.new
            base, target = pair['currency_pair'].split('_')
            market_pair.base = base
            market_pair.target = target
            market_pair.market = Zaif::Market::NAME
            market_pairs << market_pair
          end
          market_pairs
        end