Sha256: 86a213b203d50c8bfe4b0a7d1cae13eefb881498a3dfcdf4a1bbf774a7440170

Contents?: true

Size: 746 Bytes

Versions: 3

Compression:

Stored size: 746 Bytes

Contents

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

      ACCESS_MASK = 67_108_864

      attr_reader :key_id, :v_code, :character_id, :contract_id

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

      def url
        "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }&characterID=#{ character_id }&contractID=#{ contract_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/contract_items.rb
eve_online-0.10.0 lib/eve_online/characters/contract_items.rb
eve_online-0.9.0 lib/eve_online/characters/contract_items.rb