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