Sha256: 578810a3d551936ea5e1b4c2d4b585d40cfc5c3e65583edda9618bad97882a37

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/esi/models/fatigue.rb
eve_online-0.13.0 lib/eve_online/esi/models/fatigue.rb