Sha256: 54feaa00f022a91434fe183ec3b69874007f172d0da0d9ae9d543933c6bcc554

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

module EveOnline
  module Characters
    # https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_killmails.html
    class KillMails < BaseXML
      API_ENDPOINT = 'https://api.eveonline.com/char/KillMails.xml.aspx'.freeze

      ACCESS_MASK = 256

      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
        # TODO: @from_id
        # TODO: row_count
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eve_online-0.11.0 lib/eve_online/characters/kill_mails.rb
eve_online-0.10.0 lib/eve_online/characters/kill_mails.rb
eve_online-0.9.0 lib/eve_online/characters/kill_mails.rb