Class: ConsoleUtils::RequestUtils::Exap

Inherits:
Requester
  • Object
show all
Defined in:
lib/console_utils/request_utils/exap.rb

Constant Summary collapse

INSPECT_FORMAT =
"<Local: %s (%s)>".freeze

Constants inherited from Requester

Requester::INFO_HASH_FIELDS

Instance Attribute Summary

Attributes inherited from Requester

#url

Instance Method Summary collapse

Methods inherited from Requester

#pbcopy, #preview, #print_info, #size, #time, #to_info_hash

Instance Method Details

#inspectObject


22
23
24
# File 'lib/console_utils/request_utils/exap.rb', line 22

def inspect
  format INSPECT_FORMAT, request.try(:path), response.try(:status)
end

#to_sObject


18
19
20
# File 'lib/console_utils/request_utils/exap.rb', line 18

def to_s
  response.try(:body)
end