Sha256: 55fd23ab932b62132c595d39417c290ee38d09335c152a0a12988bf071e4f14c

Contents?: true

Size: 1.32 KB

Versions: 25

Compression:

Stored size: 1.32 KB

Contents

module Exlibris
  module Primo
    module WebService
      module Response
        #
        #
        #
        class Eshelf < Base
          self.abstract = true
        end

        #
        #
        #
        class GetEshelfStructure < Eshelf
          def basket_id
            @basket_id ||= basket_folder["folder_id"]
          end

          def basket_folder
            @basket_folder ||= folder("Basket")
          end

          def folders
            @folders ||= xml.xpath("//eshelf:eshelf_folders", response_namespaces)
          end

          def folder_id(folder_name)
            folder(folder_name)["folder_id"] unless folder(folder_name).nil?
          end

          def folder(folder_name)
            folders.at_xpath("//eshelf:eshelf_folder[./eshelf:folder_name='#{folder_name}']", response_namespaces)
          end
        end

        #
        #
        #
        class GetEshelf < Eshelf;
          include DidUMean
          include Records
          include SearchStats
        end

        #
        #
        #
        class AddToEshelf < Eshelf; end

        #
        #
        #
        class RemoveFromEshelf < Eshelf; end

        #
        #
        #
        class AddFolderToEshelf < Eshelf; end

        #
        #
        #
        class RemoveFolderFromEshelf < Eshelf; end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-2.1.0 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-2.0.0 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.9 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.8 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.7 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.6 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.5 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.4 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.3 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.2 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.1 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.1.0 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.11 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.10 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.9 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.8 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.7 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.6 lib/exlibris/primo/web_service/response/eshelf.rb
exlibris-primo-1.0.5 lib/exlibris/primo/web_service/response/eshelf.rb