Sha256: ffdb776270b6843ac30fa6df2ec28bdc0311d0c221be54ced06df79340d225dc

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

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

      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.8.0 lib/eve_online/characters/contact_list.rb
eve_online-0.7.0 lib/eve_online/characters/contact_list.rb