class NLBSG::SearchResponse

Public Class Methods

new(response) click to toggle source
Calls superclass method NLBSG::ResponseBase::new
# File lib/nlbsg/response/search.rb, line 4
def initialize(response)
  super(response.to_hash[:search_response])
end

Public Instance Methods

fetch_next_records() click to toggle source
# File lib/nlbsg/response/search.rb, line 24
def fetch_next_records
  p "TODO"
end
next_record_position() click to toggle source
# File lib/nlbsg/response/search.rb, line 12
def next_record_position
  @response[:next_record_position]
end
set_id() click to toggle source
# File lib/nlbsg/response/search.rb, line 16
def set_id
  @response[:set_id]
end
titles() click to toggle source
# File lib/nlbsg/response/search.rb, line 20
def titles
  wrap_in_array(@response.dig(:titles, :title))
end
total_records() click to toggle source
# File lib/nlbsg/response/search.rb, line 8
def total_records
  @response[:total_records]
end