Class: Exlibris::Primo::WebService::Response::GetReviews

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

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

#reviewsObject



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