Ruby gem for interfacing with Mechwarrior Online's public API
Add this line to your application's Gemfile:
gem 'mwo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mwo
Get a list of all weapons
MWO::Weapon.all
MWO::Weapon.all_raw # if you want the json response from the api
Scoped weapons
MWO::Weapon.ballistic
MWO::Weapon.energy
MWO::Weapon.missile
MWO::Weapon.clan
MWO::Weapon.innersphere
List all Mechs
MWO::Mech.all
MWO::Mech.all_raw # if you want the json response from the api
MWO::Mech.dictionary # Lists the Mech ID with their corresponding variants
MWO::Mech.lights
MWO::Mech.mediums
MWO::Mech.heavies
MWO::Mech.assaults
- Fork it ( https://github.com/[my-github-username]/mwo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Florante "Buddy" Magsipoc
Licensed under the MIT license (see MIT-LICENSE file)