class Consul::Client::FakeNetHttpResponse

Attributes

body[R]

Public Class Methods

new(body="Good news everyone!") click to toggle source
# File lib/consul/client/fake_http_response.rb, line 7
def initialize(body="Good news everyone!")
  @body = body
end

Public Instance Methods

code() click to toggle source
# File lib/consul/client/fake_http_response.rb, line 11
def code
  "200"
end
code_type() click to toggle source
# File lib/consul/client/fake_http_response.rb, line 15
def code_type
  Net::HTTPOK
end