Sha256: 3e485e61646e87d114184f8d8d3e3f2ac5c33ff54fb49492ad4d78b0206926da

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.31.0 lib/eve_online/esi/models/character_corporation_history.rb
eve_online-0.30.0 lib/eve_online/esi/models/character_corporation_history.rb