class Pact::Hal::HttpClient::Response
Public Instance Methods
Source
# File lib/pact/hal/http_client.rb, line 101 def body bod = raw_body if bod && bod != '' JSON.parse(bod) else nil end end
Source
# File lib/pact/hal/http_client.rb, line 122 def json? self['content-type'] && self['content-type'] =~ /json/ end
Source
# File lib/pact/hal/http_client.rb, line 118 def success? __getobj__().code.start_with?("2") end