module Exlibris::Primo::WebService::Response::SearchStats

Public Instance Methods

count()
Alias for: total_hits
first_hit() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 23
def first_hit
  @first_hit ||= search_set["FIRSTHIT"] if search_set
end
hit_time() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 11
def hit_time
  @hit_time ||= search_set["HIT_TIME"] if search_set
end
Also aliased as: search_time
hits()
Alias for: total_hits
last_hit() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 27
def last_hit
  @last_hit ||= search_set["LASTHIT"] if search_set
end
local?() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 31
def local?
  @local ||= parse_local(search_set["IS_LOCAL"]) if search_set
end
search_time()
Alias for: hit_time
size()
Alias for: total_hits
time()
Alias for: total_time
total_hits() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 16
def total_hits
  @total_hits ||= Integer(search_set["TOTALHITS"]) if search_set
end
Also aliased as: hits, count, size
total_time() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 6
def total_time
  @total_time ||= search_set["TOTAL_TIME"] if search_set
end
Also aliased as: time

Protected Instance Methods

parse_local(local) click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 35
def parse_local local
  (local.eql? "true") if local
end
search_set() click to toggle source
# File lib/exlibris/primo/web_service/response/search_stats.rb, line 40
def search_set
  @search_set ||= xml.at_xpath("//search:DOCSET", response_namespaces)
end