Class: SRU::ScanResponse
- Includes:
- Enumerable
- Defined in:
- lib/sru/scan.rb
Overview
A wrapper for the scan response from a SRU server.
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
Methods inherited from Response
Methods included from XPath
#get_attribute, #xpath, #xpath_all, #xpath_first
Constructor Details
This class inherits a constructor from SRU::Response
Instance Method Details
#each ⇒ Object
9 10 11 12 13 |
# File 'lib/sru/scan.rb', line 9 def each for term_node in xpath_all(@doc, './/zs:term', @namespaces) yield Term.new(term_node) end end |