0.0
No commit activity in last 3 years
No release in over 3 years
Get players' games stats from Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.0

Runtime

 Project Readme

SteamStats

Build Status Dependency Status Code Climate Coverage Status

Get Steam player's info and games stats.

Installation

Add this line to your application's Gemfile:

gem 'steam_stats'

And then execute:

$ bundle

Or install it yourself as:

$ gem install steam_stats

Usage

  1. Find user by ID or your customized address nick, check it by going to your profile page at steamcommunity.com
user = SteamStats::User.new '76561198041851025'
# or
user = SteamStats::User.new 'pewdie'
  1. Get array of played games
games = user.games #=> [{ name: 'Team Fortress 2', played_hours: 93 }, { name: 'Sniper Elite V2', played_hours: 2.4 }, ...]
  1. And now you have your stats, have fun with it!
hours_in_tf2 = games[0].played_hours

Contributing

  1. Fork it ( https://github.com/neonowy/steam_stats/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Code, code, code 💻 💻
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request