Class: AllscriptsUnityClient::ClientDriver

Inherits:
Object
  • Object
show all
Defined in:
lib/allscripts_unity_client/client_driver.rb

Direct Known Subclasses

JSONClientDriver, SOAPClientDriver

Constant Summary collapse

LOG_FILE =
'logs/unity_client.log'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ClientDriver

Returns a new instance of ClientDriver.



9
10
11
# File 'lib/allscripts_unity_client/client_driver.rb', line 9

def initialize(options)
  @options = ClientOptions.new(options)
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/allscripts_unity_client/client_driver.rb', line 7

def options
  @options
end

#security_tokenObject

Returns the value of attribute security_token.



7
8
9
# File 'lib/allscripts_unity_client/client_driver.rb', line 7

def security_token
  @security_token
end

Instance Method Details

#client_typeObject



17
18
19
# File 'lib/allscripts_unity_client/client_driver.rb', line 17

def client_type
  :none
end

#get_security_token!(parameters = {}) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/allscripts_unity_client/client_driver.rb', line 25

def get_security_token!(parameters = {})
  raise NotImplementedError, 'get_security_token! not implemented'
end

#magic(parameters = {}) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/allscripts_unity_client/client_driver.rb', line 21

def magic(parameters = {})
  raise NotImplementedError, 'magic not implemented'
end

#retire_security_token!(parameters = {}) ⇒ Object

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/allscripts_unity_client/client_driver.rb', line 29

def retire_security_token!(parameters = {})
  raise NotImplementedError, 'retire_security_token! not implemented'
end

#security_token?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/allscripts_unity_client/client_driver.rb', line 13

def security_token?
  !@security_token.nil?
end