Class: Exlibris::Primo::WebService::Response::GetTags

Inherits:
Tags
  • Object
show all
Defined in:
lib/exlibris/primo/web_service/response/tags.rb

Direct Known Subclasses

GetAllMyTags, GetTagsForRecord

Instance Attribute Summary

Attributes inherited from Base

#body, #code

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from XmlUtil

included, #to_hash, #to_json, #to_xml

Methods included from Util

#return_key

Methods included from Namespaces

included

Methods included from Error

#error, #error?, #error_code, #error_message

Methods included from Abstract

included, #initialize

Constructor Details

This class inherits a constructor from Exlibris::Primo::WebService::Response::Base

Instance Method Details

#everybody_tagsObject



21
22
23
24
# File 'lib/exlibris/primo/web_service/response/tags.rb', line 21

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

#my_tagsObject



16
17
18
19
# File 'lib/exlibris/primo/web_service/response/tags.rb', line 16

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