Class: Exlibris::Primo::WebService::Response::FullView
- Defined in:
- lib/exlibris/primo/web_service/response/search.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*args) ⇒ FullView
constructor
A new instance of FullView.
- #search_doc ⇒ Object
Methods included from SearchStats
#first_hit, #hit_time, #last_hit, #local?, #total_hits, #total_time
Methods included from Records
Methods included from Facets
Methods included from DidUMean
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
#initialize(*args) ⇒ FullView
Returns a new instance of FullView.
22 23 24 25 26 27 |
# File 'lib/exlibris/primo/web_service/response/search.rb', line 22 def initialize *args super @record = records.first # @record = records.first.last @local = parse_local(search_doc["LOCAL"]) if search_doc end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
20 21 22 |
# File 'lib/exlibris/primo/web_service/response/search.rb', line 20 def record @record end |
Instance Method Details
#search_doc ⇒ Object
29 30 31 |
# File 'lib/exlibris/primo/web_service/response/search.rb', line 29 def search_doc xml.at_xpath("//search:DOC", response_namespaces) end |