Skip to content

AeroCross/brawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brawler

Heroes of the Storm game data (heroes, abilities, talents, etc.), Ruby-style.

Data provided by heroesjson.com.

Usage

In your Gemfile:

gem "brawler"

or just in your command line:

gem install brawler

And then:

require "brawler"

Unless you're using Rails — in that case, congratulations! You don't have to deal with loading. I'm jealous.

Available classes and methods

Brawler.hero(value, by: :name)

by can be either :name (by default) or :role.

Brawler.hero("Abathur")
=> Brawler::Hero<@name="Abathur">
Brawler.hero("Support", by: :role)
=> [Brawler::Hero<@name="Brightwing">, Brawler::Hero<@name="Tassadar">...]

Brawler::Hero contains hero data.

  • #name
  • #title
  • #description
  • #role
  • #type
  • #franchise
  • #difficulty
  • #release_date

This uses Brawler::Finder::HeroFinder, which has a lot of incomplete finder methods. Check it out if you like danger.

Test suite

This is tested using RSpec. Just run rspec in the root directory and enjoy the greens and the ocassional yellow.

TODO

  • Abilities per hero
  • Abilities finder
  • Hero ratings, stats, talents
  • Download the latest data from heroesjson.com
  • Autogenerated documentation because c'mon

License

MIT.

About

Game data for Heroes of the Storm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages