Sha256: bae7316be6bc86c994eade5dac74d18c8abb38d33a200963125fed280b72264e

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

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

      ACCESS_MASK = 8_192

      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

3 entries across 3 versions & 1 rubygems

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