Sha256: 4efd8b29989b65ca06ff1dd91c0a14a10693ae50bc1eda52b8c614e830fbd052

Contents?: true

Size: 692 Bytes

Versions: 10

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class CharacterCorporationHistory < Base
      API_PATH = "/v1/characters/%<character_id>s/corporationhistory/"

      attr_reader :character_id

      def initialize(options)
        super

        @character_id = options.fetch(:character_id)
      end

      def entries
        @entries ||=
          begin
            output = []
            response.each do |record|
              output << Models::CharacterCorporationHistory.new(record)
            end
            output
          end
      end

      def scope
      end

      def path
        format(API_PATH, character_id: character_id)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eve_online-0.38.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.37.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.36.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.35.1 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.35.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.34.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.33.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.32.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.31.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.30.0 lib/eve_online/esi/character_corporation_history.rb