Sha256: 988c20b2405d195755ba2bb06c83f30534e5f785077a9ac7e9813b50c8f3b28b

Contents?: true

Size: 746 Bytes

Versions: 2

Compression:

Stored size: 746 Bytes

Contents

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

      ACCESS_MASK = 536_870_912

      attr_reader :key_id, :v_code, :character_id

      def initialize(key_id, v_code, options = {})
        super()
        @key_id = key_id
        @v_code = v_code
        @character_id = options.fetch(:character_id, nil)
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.11.0 lib/eve_online/characters/chat_channels.rb
eve_online-0.10.0 lib/eve_online/characters/chat_channels.rb