Sha256: fde9203002e67418f2b900ae66c32637072075c93273c6b754827b99bbaf968e
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
require 'uri' module EveOnline module XML # https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_locations.html class CharacterLocations < Base API_ENDPOINT = 'https://api.eveonline.com/char/Locations.xml.aspx'.freeze ACCESS_MASK = 134_217_728 attr_reader :key_id, :v_code, :character_id, :ids def initialize(key_id, v_code, character_id, ids) super() @key_id = key_id @v_code = v_code @character_id = character_id @ids = ids end def url "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }&characterID=#{ character_id }&IDs=#{ escaped_ids }" end private def escaped_ids URI.escape(ids.join(',')) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.12.0 | lib/eve_online/xml/character_locations.rb |