Class: Net::HTTPResponse
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
17 18 19 20 |
# File 'test/test_helper.rb', line 17 def body # defined?() helps us to get rid of a bunch of 'warnings' (defined?(@mymsg) && @mymsg) ? @mymsg : real_body end |
#real_body ⇒ Object
12 |
# File 'test/test_helper.rb', line 12 alias_method :real_body, :body |
#setmsg(msg) ⇒ Object
13 14 15 |
# File 'test/test_helper.rb', line 13 def setmsg(msg) @mymsg = msg end |