Exception: AllscriptsApi::NoConfigurationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/allscripts_api.rb

Overview

Error raised if AllscriptsApi.connect is called without configuring the gem first

Class Method Summary collapse

Class Method Details

.error_messageString

method to return a sample config block

Returns:

  • (String)

    a sample config block



35
36
37
38
39
40
41
42
43
# File 'lib/allscripts_api.rb', line 35

def self.error_message
  %(Please add the following to config/initializers and try again.
    AllscriptsApi.configure do |config|
      config.app_name = 'YOUR_APP_NAME_HERE'
      config.app_username = 'YOUR_APP_USERNAME_HERE'
      config.app_password = 'YOUR_APP_PASSWORD_HERE'
    end
  )
end