Sha256: 34eb95e9c919371f124e7e317211abb6aba711222fcd5beff05e47c21310ab96

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

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 mechs_url
    host + MECHS_PATH
  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

4 entries across 4 versions & 1 rubygems

Version Path
mwo-1.0.0 lib/mwo/client.rb
mwo-0.1.2 lib/mwo/client.rb
mwo-0.1.1 lib/mwo/client.rb
mwo-0.1.0 lib/mwo/client.rb