Class: AllscriptsUnityClient::ClientDriver
- Inherits:
-
Object
- Object
- AllscriptsUnityClient::ClientDriver
show all
- Defined in:
- lib/allscripts_unity_client/client_driver.rb
Constant Summary
collapse
- LOG_FILE =
'logs/unity_client.log'
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ClientDriver.
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 9
def initialize(options)
@options = ClientOptions.new(options)
if @options.new_relic
NewRelicSupport.enable_method_tracer(self)
class << self
add_method_tracer :magic
add_method_tracer :get_security_token!
add_method_tracer :retire_security_token!
end
end
end
|
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
7
8
9
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 7
def options
@options
end
|
#security_token ⇒ Object
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_type ⇒ Object
28
29
30
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 28
def client_type
:none
end
|
#get_security_token!(parameters = {}) ⇒ Object
36
37
38
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 36
def get_security_token!(parameters = {})
raise NotImplementedError, 'get_security_token! not implemented'
end
|
#magic(parameters = {}) ⇒ Object
32
33
34
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 32
def magic(parameters = {})
raise NotImplementedError, 'magic not implemented'
end
|
#retire_security_token!(parameters = {}) ⇒ Object
40
41
42
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 40
def retire_security_token!(parameters = {})
raise NotImplementedError, 'retire_security_token! not implemented'
end
|
#security_token? ⇒ Boolean
24
25
26
|
# File 'lib/allscripts_unity_client/client_driver.rb', line 24
def security_token?
!@security_token.nil?
end
|