Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tbeseda/bf3

Simple Ruby gem to get Battlefield 3 stats from bf3stats.com
https://github.com/tbeseda/bf3

Last synced: 3 months ago
JSON representation

Simple Ruby gem to get Battlefield 3 stats from bf3stats.com

Awesome Lists containing this project

README

        

# Simple Battlefield 3 Stats
powered by bf3stats.com

[![Build Status](https://secure.travis-ci.org/tbeseda/bf3.png)](http://travis-ci.org/tbeseda/bf3)

## Example:

```ruby
require 'bf3'

player = Bf3::Player.new('Raengr', '360')
stats = player.callUp() # get global stats

kdratio = stats['global']['kills'].to_f / stats['global']['deaths'].to_f
# OR, conveniently
kdratio = player.kdr()

# to get ALL THE STATS!
all_stats = player.callUp('all')
```