class Netologiest::HttpClient::Response
Attributes
body[R]
code[R]
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/netologiest/http_client.rb, line 27 def initialize(response) @response = response @body = response.body @code = response.code.to_i end
Public Instance Methods
success?()
click to toggle source
# File lib/netologiest/http_client.rb, line 19 def success? response.is_a?(Net::HTTPSuccess) end