Sha256: 04192bb8cf1da9a0d3734854665a7bc4ed1b7251a64d4bc4d29efd4d01ae076b

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

module EveOnline
  module XML
    # https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_planetarylinks.html
    class CharacterPlanetaryLinks < Base
      API_ENDPOINT = 'https://api.eveonline.com/char/PlanetaryLinks.xml.aspx'.freeze

      ACCESS_MASK = 2

      attr_reader :key_id, :v_code, :character_id, :planet_id

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

      def url
        "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }&characterID=#{ character_id }&planetID=#{ planet_id }"
      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_planetary_links.rb