Module: Exlibris::Primo::WebService::Response::Records
Instance Method Summary collapse
Instance Method Details
#records ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/exlibris/primo/web_service/response/records.rb', line 6 def records @records ||= xml.xpath("//pnx:record", response_namespaces).collect { |record| Exlibris::Primo::Record.new(:raw_xml => record.to_xml) } # @records ||= Hash[xml.xpath("//pnx:record", response_namespaces).collect { |record| # [ record.xpath("//pnx:record_id", response_namespaces).inner_text, # Exlibris::Primo::Record.new(:raw_xml => record.to_xml) ]}] end |