class Fieldhand::ListSetsParser
A parser for ListSets responses.
See www.openarchives.org/OAI/openarchivesprotocol.html#ListSets
Attributes
response_parser[R]
Public Class Methods
new(response_parser)
click to toggle source
Return a new parser for the given response parser.
# File lib/fieldhand/list_sets_parser.rb, line 13 def initialize(response_parser) @response_parser = response_parser end
Public Instance Methods
items()
click to toggle source
Return an array of `Set`s found in the response.
# File lib/fieldhand/list_sets_parser.rb, line 18 def items response_parser. root. locate('ListSets/set'). map { |item| Set.new(item, response_parser.response_date) } end