Sha256: 8e55c359f04344770d5bdfc904abeb53701dee6cd25ccff91bf7535095dd04a8

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

module EveOnline
  module Characters
    # https://eveonline-third-party-documentation.readthedocs.org/en/latest/xmlapi/char_charactersheet/
    class CharacterSheet < Base
      API_ENDPOINT = 'https://api.eveonline.com/char/CharacterSheet.xml.aspx'

      attr_reader :key_id, :v_code, :character_id

      def initialize(key_id, v_code, character_id)
        super()
        @key_id = key_id
        @v_code = v_code
        @character_id = character_id
      end

      def url
        "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }&characterID=#{ character_id }"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.6.0 lib/eve_online/characters/character_sheet.rb
eve_online-0.5.0 lib/eve_online/characters/character_sheet.rb