Sha256: 45daa35d8c136675e9284013cc4db0f94f86e0e83a91bf101ed1c221017c506c
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module EveOnline module Account # http://wiki.eve-id.net/APIv2_Account_Characters_XML class Characters < Base API_ENDPOINT = 'https://api.eveonline.com/account/Characters.xml.aspx' def version eveapi.fetch('@version').to_i end def name row.fetch('@name') end def character_id row.fetch('@characterID').to_i end def corporation_name row.fetch('@corporationName') end def corporation_id row.fetch('@corporationID').to_i end def alliance_id row.fetch('@allianceID').to_i end def alliance_name row.fetch('@allianceName') end def faction_id row.fetch('@factionID').to_i end def faction_name row.fetch('@factionName') end def row rowset.fetch('row') end def rowset result.fetch('rowset') end def url "#{ API_ENDPOINT}?keyID=#{ key_id }&vCode=#{ v_code }" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.3.0 | lib/eve_online/account/characters.rb |