Class: SolrMakr::SolrAPI::ListResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/solr_makr/solr_api/list_response.rb

Instance Attribute Summary

Attributes inherited from Response

#failure, #raw_response, #response_header

Instance Method Summary collapse

Methods inherited from Response

#array, #dig, #initialize, #success?, #to_s

Constructor Details

This class inherits a constructor from SolrMakr::SolrAPI::Response

Instance Method Details

#collections<String>

Returns:

  • (<String>)


5
6
7
# File 'lib/solr_makr/solr_api/list_response.rb', line 5

attr_lazy_reader :collections do
  array(:collections)
end

#each_collection {|| ... } ⇒ Object

Yield Parameters:

  • (String)


10
11
12
13
14
15
16
# File 'lib/solr_makr/solr_api/list_response.rb', line 10

def each_collection
  return enum_for(__method__) unless block_given?

  collections.each do |collection|
    yield collection
  end
end