Class: TicketAbstractorClient::Base::Client
- Inherits:
-
Object
- Object
- TicketAbstractorClient::Base::Client
- Includes:
- ResponseHandler
- Defined in:
- lib/ticket_abstractor_client/base/client.rb
Direct Known Subclasses
Constant Summary collapse
- TA_RESPONSE_TIME_HEADERS_LIST =
%i(total_response_time ta_response_time ts_response_time).freeze
Instance Attribute Summary collapse
-
#communications_stack ⇒ Object
readonly
Returns the value of attribute communications_stack.
-
#trace_communications ⇒ Object
readonly
Returns the value of attribute trace_communications.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Methods included from ResponseHandler
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ticket_abstractor_client/base/client.rb', line 10 def initialize @base_url = TicketAbstractorClient.configuration.ticket_abstractor_url @security_token = TicketAbstractorClient.configuration.security_token @ssl_options = TicketAbstractorClient.configuration. @communications_stack = [] @trace_communications = TicketAbstractorClient.configuration.trace_communications raise Errors::ConfigurationError, 'TicketAbstractor url is not given' if @base_url.blank? raise Errors::ConfigurationError, 'SecurityToken is not given' if @security_token.blank? end |
Instance Attribute Details
#communications_stack ⇒ Object (readonly)
Returns the value of attribute communications_stack.
8 9 10 |
# File 'lib/ticket_abstractor_client/base/client.rb', line 8 def communications_stack @communications_stack end |
#trace_communications ⇒ Object (readonly)
Returns the value of attribute trace_communications.
8 9 10 |
# File 'lib/ticket_abstractor_client/base/client.rb', line 8 def trace_communications @trace_communications end |