class TicketAbstractorClient::CommunicationData
Constants
- BINARY_RESPONSE_TEXT
Attributes
args[RW]
executed_at[RW]
method[RW]
path[RW]
response[RW]
ta_response_time[RW]
total_response_time[RW]
ts_response_time[RW]
Public Class Methods
new()
click to toggle source
# File lib/ticket_abstractor_client/communication_data.rb, line 8 def initialize @binary_response = false end
Public Instance Methods
binary_response!()
click to toggle source
# File lib/ticket_abstractor_client/communication_data.rb, line 12 def binary_response! @binary_response = true end
binary_response?()
click to toggle source
# File lib/ticket_abstractor_client/communication_data.rb, line 16 def binary_response? @binary_response end
to_h()
click to toggle source
# File lib/ticket_abstractor_client/communication_data.rb, line 26 def to_h { method: self.method, path: self.path, args: self.args, response: self.response, executed_at: self.executed_at, total_response_time: self.total_response_time, ta_response_time: self.ta_response_time, ts_response_time: self.ts_response_time } end
to_json()
click to toggle source
# File lib/ticket_abstractor_client/communication_data.rb, line 39 def to_json self.to_h.to_json end