Mwo

Ruby gem for interfacing with Mechwarrior Online's public API

http://mwomercs.com/forums/topic/164685-betatesting-for-our-json-reference-files-the-start-of-the-api-details-within/

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

  1. Fork it ( https://github.com/[my-github-username]/mwo/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Author

Florante "Buddy" Magsipoc

@keikun17

License

Licensed under the MIT license (see MIT-LICENSE file)