ruby_odataRuby 实现 OData 协议封装
ruby_odata 是 Ruby 实现 OData 协议的封装,安装方法:gem install ruby_odata
示例代码:
require 'lib/ruby_odata' svc = OData::Service.new "http://127.0.0.1:8888/SampleService/Entities.svc" new_category = Category.new new_category.Name = "Sample Category" svc.AddToCategories(new_category) category = svc.save_changes puts category.to_json
评论