Sha256: e8d3c8ae8a443aa32423b43fe031e82df859eab2b096236d3853abbe475df523

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

# frozen_string_literal: true

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

        def alliance_id
          options['alliance_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.29.0 lib/eve_online/esi/models/corporation_alliance_history.rb
eve_online-0.28.0 lib/eve_online/esi/models/corporation_alliance_history.rb