Sha256: 83e5e15e48242d7c130bb04659f05c5d188acf929378a841efee96f401400e2e

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 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

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/character_corporation_history.rb
eve_online-0.28.0 lib/eve_online/esi/character_corporation_history.rb