Class: Exlibris::Primo::WebService::Response::GetReviews
- Defined in:
- lib/exlibris/primo/web_service/response/reviews.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from XmlUtil
included, #to_hash, #to_json, #to_xml
Methods included from Util
Methods included from Namespaces
Methods included from Error
#error, #error?, #error_code, #error_message
Methods included from Abstract
Constructor Details
This class inherits a constructor from Exlibris::Primo::WebService::Response::Base
Instance Method Details
#reviews ⇒ Object
16 17 18 19 |
# File 'lib/exlibris/primo/web_service/response/reviews.rb', line 16 def reviews @reviews ||= xml.root.xpath("//tags_reviews:Review", response_namespaces).collect { |review| Exlibris::Primo::Review.new(:raw_xml => review.to_xml) } end |