Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/splittingred/kagerator
https://github.com/splittingred/kagerator
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/splittingred/kagerator
- Owner: splittingred
- Created: 2013-02-20T03:32:14.000Z (over 11 years ago)
- Default Branch: develop
- Last Pushed: 2013-03-20T01:23:07.000Z (over 11 years ago)
- Last Synced: 2024-03-15T04:20:51.301Z (8 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Kagerator
Consumes the KAG API.
## Usage
require 'kagerator'# player info
player = Kagerator.player("splittingred")
puts player[:playerInfo][:status]# server info
server = Kagerator.server("74.91.114.49",50301)
puts server[:serverStatus][:description]# server list
servers = Kagerator.servers({:empty => 0,:full => 0})
servers[:serverList].each do |server|
puts server[:serverName]+'
'
end## Info
Written by Shaun McCormick
Uses RestClient, SymbolTable and JSON gems, with RSpec for testing
Released under the GPLv2 or later License: http://www.gnu.org/licenses/gpl-2.0.html