日期:2014-05-16 浏览次数:20287 次
require 'rubygems' require 'json' require 'net/http' url = "http://localhost:3000/sumodels/#{$entity.guid}.json" response = Net::HTTP.get_response(URI.parse(url)) data = response.body result = JSON.parse(data)