lib/mwo/client.rb in mwo-0.0.3 vs lib/mwo/client.rb in mwo-0.1.0
- old
+ new
@@ -1,16 +1,18 @@
class MWO::Client
ITEMS_PATH = "/api/items/list/full.json"
OMNIPARTS_PATH = "/api/omniparts/list/full.json"
+ MECHS_PATH = "/api/mechs/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
+ def mechs_url
+ host + MECHS_PATH
end
def items_url
host + ITEMS_PATH
end