Class: SRU::ScanResponse

Inherits:
Response show all
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

#doc, #namespaces, #parser

Instance Method Summary collapse

Methods inherited from Response

#initialize

Methods included from XPath

#get_attribute, #xpath, #xpath_all, #xpath_first

Constructor Details

This class inherits a constructor from SRU::Response

Instance Method Details

#eachObject



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