Class: BaseIndexer::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/base_indexer/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#remove_prefix(druid) ⇒ Object



6
7
8
# File 'app/controllers/base_indexer/application_controller.rb', line 6

def remove_prefix druid
  druid.gsub('druid:','') # lop off druid prefix if sent
end

#report_failure(method_symbol, params, e) ⇒ Object



10
11
12
# File 'app/controllers/base_indexer/application_controller.rb', line 10

def report_failure method_symbol, params, e
  return "#{method_symbol} #{params}\n\n#{e.inspect}\n#{e.message}\n#{e.backtrace}"
end

#report_successObject



14
15
16
# File 'app/controllers/base_indexer/application_controller.rb', line 14

def report_success
  return "success"
end