Sha256: d1d1bb24946287074f41a0260354d738dfde68d15979bb59cee395379c049272

Contents?: true

Size: 595 Bytes

Versions: 9

Compression:

Stored size: 595 Bytes

Contents

module Exlibris
  module Primo
    module WebService
      module Response
        module Records
          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
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
exlibris-primo-1.0.8 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.7 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.6 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.5 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.4 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.3 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.2 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.1 lib/exlibris/primo/web_service/response/records.rb
exlibris-primo-1.0.0 lib/exlibris/primo/web_service/response/records.rb