class Pact::Hal::ErrorEntity
Public Class Methods
Source
# File lib/pact/hal/entity.rb, line 93 def initialize(href, data, http_client, response = nil) @href = href @data = data @links = {} @client = http_client @response = response end
Public Instance Methods
Source
# File lib/pact/hal/entity.rb, line 105 def assert_success! raise ErrorResponseReturned.new("Error retrieving #{@href} status=#{response ? response.code: nil} #{response ? response.raw_body : ''}") end