Heroes of the Storm game data (heroes, abilities, talents, etc.), Ruby-style.
Data provided by heroesjson.com.
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.
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.
This is tested using RSpec. Just run rspec
in the root directory and enjoy the greens and the ocassional yellow.
- Abilities per hero
- Abilities finder
- Hero ratings, stats, talents
- Download the latest data from heroesjson.com
- Autogenerated documentation because c'mon
MIT.