This question shows research effort; it is useful and clear
-1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
取得エラー: ./http.rb:13: 未定義のメソッド `code' for # (NoMethodError)
#!/usr/bin/ruby
require 'rubygems'
require 'httparty'
class Foo
include HTTParty
end
# Simple get with full url
r = Foo.get('http://www.google.com/')
p r.code