Sha256: b5610374f57d2877f8b5b503d5aef843b3791a0d43a36a1e283200187f567e87

Contents?: true

Size: 906 Bytes

Versions: 15

Compression:

Stored size: 906 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Fatigue < Base
        def as_json
          {
            jump_fatigue_expire_date: jump_fatigue_expire_date,
            last_jump_date: last_jump_date,
            last_update_date: last_update_date
          }
        end

        def jump_fatigue_expire_date
          jump_fatigue_expire_date = options['jump_fatigue_expire_date']

          parse_datetime_with_timezone(jump_fatigue_expire_date) if jump_fatigue_expire_date
        end

        def last_jump_date
          last_jump_date = options['last_jump_date']

          parse_datetime_with_timezone(last_jump_date) if last_jump_date
        end

        def last_update_date
          last_update_date = options['last_update_date']

          parse_datetime_with_timezone(last_update_date) if last_update_date
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.28.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.27.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.26.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.25.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.24.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.23.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.22.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.21.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.20.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.19.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.18.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.17.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.16.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.15.0 lib/eve_online/esi/models/fatigue.rb