Sha256: 1c378fd39608e38c65211c005c7b6787983a0f6eddc8989c23ba8e4252ab8fbe
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
class MWO::Client ITEMS_PATH = "/api/items/list/full.json" OMNIPARTS_PATH = "/api/omniparts/list/full.json" MECH_IDS_PATH = "/api/mechs/list/dict.json" attr_accessor :host def initialize(args = {}) @host = args[:host] || "http://static.mwomercs.com" end def items end def items_url host + ITEMS_PATH end def omniparts_url host + OMNIPARTS_PATH end def mech_ids_url host + MECH_IDS_PATH end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mwo-0.0.3 | lib/mwo/client.rb |
mwo-0.0.2 | lib/mwo/client.rb |
mwo-0.0.1 | lib/mwo/client.rb |