class BlacklightInternetArchive::EntityProcessor

extract and convert individual results from response

Public Class Methods

get_processor(search_type = 'catalog') click to toggle source
# File lib/blacklight_internet_archive/entity_processor.rb, line 9
  def self.get_processor(search_type = 'catalog')
          if search_type == 'search_pages'
                  # return ArchivedPagesEntityProcessor.new
          elsif search_type == 'search_videos'
  # return SeedVideosEntityProcessor.new
else 
  return SitesEntityProcessor.new
end
  end

Public Instance Methods

run(response_json, base_url) click to toggle source
# File lib/blacklight_internet_archive/entity_processor.rb, line 20
def run(response_json, base_url)
    raise NotImplementedError
end