Sha256: 37c83f89d7c575a89cfeef20a6676bea1e10e8e122d262a8effa01c744eaaf61

Contents?: true

Size: 692 Bytes

Versions: 8

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class CharacterCorporationHistory < Base
      API_PATH = "/v2/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

8 entries across 8 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.45.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.44.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.43.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.42.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.41.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.40.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.39.0 lib/eve_online/esi/character_corporation_history.rb