Class: Exlibris::Primo::WebService::Response::FullView

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

Instance Attribute Summary collapse

Attributes inherited from Base

#body, #code

Instance Method Summary collapse

Methods included from SearchStats

#first_hit, #hit_time, #last_hit, #local?, #total_hits, #total_time

Methods included from Records

#records

Methods included from Facets

#facets

Methods included from DidUMean

#did_u_mean, #querytransform

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

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

#recordObject (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_docObject



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