# SteamStats [![Build Status](https://travis-ci.org/neonowy/steam-stats.svg?branch=master)](https://travis-ci.org/neonowy/steam-stats) [![Dependency Status](https://gemnasium.com/neonowy/steam-stats.svg)](https://gemnasium.com/neonowy/steam-stats) [![Code Climate](https://codeclimate.com/github/neonowy/steam-stats/badges/gpa.svg)](https://codeclimate.com/github/neonowy/steam-stats) [![Coverage Status](https://coveralls.io/repos/neonowy/steam-stats/badge.svg?branch=master)](https://coveralls.io/r/neonowy/steam-stats?branch=master) Get Steam player's info and games stats. ## Installation Add this line to your application's Gemfile: ```ruby 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](http://steamcommunity.com/) ```ruby user = SteamStats::User.new '76561198041851025' # or user = SteamStats::User.new 'pewdie' ``` 2. Get array of played games ```ruby games = user.games #=> [{ name: 'Team Fortress 2', played_hours: 93 }, { name: 'Sniper Elite V2', played_hours: 2.4 }, ...] ``` 3. And now you have your stats, have fun with it! ```ruby 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 :computer: :computer: 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request