Class: ConsoleUtils::RequestUtils::Exap
- Inherits:
-
Requester
- Object
- SimpleDelegator
- Requester
- ConsoleUtils::RequestUtils::Exap
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
#inspect ⇒ Object
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_s ⇒ Object
18
19
20
|
# File 'lib/console_utils/request_utils/exap.rb', line 18
def to_s
response.try(:body)
end
|