Mwo
Ruby gem for interfacing with Mechwarrior Online's public API
Installation
Add this line to your application's Gemfile:
gem 'mwo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mwo
Usage
Weapons
Get a list of all weapons
MWO::Weapon.all
MWO::Weapon.all_raw # if you want the json response from the api
Scoped weapons
By Category
MWO::Weapon.ballistic
MWO::Weapon.energy
MWO::Weapon.missile
By Faction
MWO::Weapon.clan
MWO::Weapon.innersphere
Mechs
List all Mechs
MWO::Mech.all
MWO::Mech.all_raw # if you want the json response from the api
Lists the Mech ID with their corresponding variants
MWO::Mech.dictionary # Lists the Mech ID with their corresponding variants
By Weight class
MWO::Mech.lights
MWO::Mech.mediums
MWO::Mech.heavies
MWO::Mech.assaults
Contributing
- 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
Author
Florante "Buddy" Magsipoc
License
Licensed under the MIT license (see MIT-LICENSE file)