22 lines
366 B
Ruby
22 lines
366 B
Ruby
![]() |
# frozen_string_literal: true
|
||
|
|
||
|
module Gitlab
|
||
|
module GitalyClient
|
||
|
class ListBlobsAdapter
|
||
|
include Enumerable
|
||
|
|
||
|
def initialize(rpc_response)
|
||
|
@rpc_response = rpc_response
|
||
|
end
|
||
|
|
||
|
def each
|
||
|
@rpc_response.each do |msg|
|
||
|
msg.blobs.each do |blob|
|
||
|
yield blob
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|