Sha256: 22d3d984da22cebad6f71b9723f89c86e1a36f8da3cc3329be57084933f54654

Contents?: true

Size: 716 Bytes

Versions: 3

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class CharacterCorporationHistory < Base
        def as_json
          {
            corporation_id: corporation_id,
            is_deleted: is_deleted,
            record_id: record_id,
            start_date: start_date
          }
        end

        def corporation_id
          options['corporation_id']
        end

        def is_deleted
          options['is_deleted']
        end

        def record_id
          options['record_id']
        end

        def start_date
          start_date = options['start_date']

          parse_datetime_with_timezone(start_date) if start_date
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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