【文件属性】:
文件名称:gw2:用于访问Guild Wars 2 API的Ruby接口
文件大小:712KB
文件格式:ZIP
更新时间:2021-05-13 16:12:02
Ruby
激战2 API宝石
一个用于访问Guild Wars 2 API的Ruby接口。
安装
gem install gw2
动态事件API
获取所有动态事件
GW2 :: Event . all
获取来自特定世界的所有动态事件
GW2 :: Event . where ( world_id : 1013 )
从特定地图获取所有动态事件
GW2 :: Event . where ( map_id : 39 )
获取特定动态事件的实例
GW2 :: Event . where ( event_id : "F5D23902-2D9A-4B58-8B7D-1EEA0067134D" )
注意:您可以使用world_id,map_id和event_id的任意组合来查询动态事件。
获取事件,地图或世界的所有名称
GW2 :: Event . event_names
GW2 :: E
【文件预览】:
gw2-master
----.gitignore(73B)
----LICENSE.md(1KB)
----.travis.yml(63B)
----CHANGELOG.md(245B)
----spec()
--------gw2()
--------spec_helper.rb(711B)
--------fixtures()
----README.md(2KB)
----lib()
--------gw2()
--------gw2.rb(759B)
----Gemfile(212B)
----gw2.gemspec(538B)
----Rakefile(170B)