Sha256: 6c60ddc8396954e76df1021be305f9fd0b70903220c38eb896320dcb76644feb

Contents?: true

Size: 1.09 KB

Versions: 25

Compression:

Stored size: 1.09 KB

Contents

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

        # 
        # 
        # 
        class GetTags < Tags
          def my_tags
            @my_tags ||= xml.root.xpath("//tags_reviews:MyTags/tags_reviews:Tag", response_namespaces).collect { |tag|
                Exlibris::Primo::Tag.new(:raw_xml => tag.to_xml) }
          end

          def everybody_tags
            @everybody_tags ||= xml.root.xpath("//tags_reviews:EverybodyTags/tags_reviews:Tag", response_namespaces).collect { |tag|
                Exlibris::Primo::Tag.new(:raw_xml => tag.to_xml) }
          end
        end

        # 
        # 
        # 
        class GetAllMyTags < GetTags; end

        # 
        # 
        # 
        class GetTagsForRecord < GetTags; end

        # 
        # 
        # 
        class AddTag < Tags; end

        # 
        # 
        # 
        class RemoveTag < Tags; end

        # 
        # 
        # 
        class RemoveUserTags < Tags; 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/tags.rb
exlibris-primo-2.1.0 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-2.0.0 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.9 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.8 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.7 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.6 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.5 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.4 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.3 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.2 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.1 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.1.0 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.11 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.10 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.9 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.8 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.7 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.6 lib/exlibris/primo/web_service/response/tags.rb
exlibris-primo-1.0.5 lib/exlibris/primo/web_service/response/tags.rb