class Aviator::Service::SessionDataNotProvidedError

Public Class Methods

new(service_name, request_name) click to toggle source
Calls superclass method
# File lib/aviator/core/service.rb, line 27
def initialize(service_name, request_name)
  super "\n\nERROR: default_session_data is not initialized and no session data was provided in\n"               "the method call. You have two ways to fix this:\n\n"               "   1) Call Session#authenticate before calling Session##{service_name}_service, or\n\n"               "   2) If you're really sure you don't want to authenticate beforehand,\n"               "      construct the method call this way:\n\n"               "          service = session.#{service_name}_service\n"               "          service.request :#{request_name}, :api_version => :v2, :session_data => sessiondatavar\n\n"               "      Replace :v2 with whatever available version you want to use and make sure sessiondatavar\n"               "      is a hash that contains, at least, the :base_url key. Other keys, such as :service_token may\n"               "      be needed depending on what the request class you are calling requires.\n\n"
end