Class: Gitlab::GitalyClient::ListBlobsAdapter

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/gitlab/gitaly_client/list_blobs_adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(rpc_response) ⇒ ListBlobsAdapter

Returns a new instance of ListBlobsAdapter.


8
9
10
# File 'lib/gitlab/gitaly_client/list_blobs_adapter.rb', line 8

def initialize(rpc_response)
  @rpc_response = rpc_response
end

Instance Method Details

#eachObject


12
13
14
15
16
17
18
# File 'lib/gitlab/gitaly_client/list_blobs_adapter.rb', line 12

def each
  @rpc_response.each do |msg|
    msg.blobs.each do |blob|
      yield blob
    end
  end
end