A Ruby wrapper around the Overwatch League API
$ gem install overwatch_league
require 'overwatch_league' owl = OverwatchLeague.new teams = owl.teams
There is no official documentation for the API. However, this Reddit post documents the API reasonably well.
The following methods are supported as part of the basic client.
Rather than just returning a JSON
Hash, each method returns an
OpenStruct representation of the JSON where the keys have been converted to snake case. This is done for convenience, as it allows for
object.key.another_key instead of
object['key']['another_key'] when parsing the response.
Development & Contributions
After checking out the repo, run
bin/setup to install dependencies. Then, run
rake spec to run the tests. You can also run
bin/console for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/jgayfer/overwatch_league.
The gem is available as open source under the terms of the MIT License.