Sha256: 90b795abdbf50da94d6170456a6675b9c087e619a4ac7a648a8cdb4729edd270

Contents?: true

Size: 665 Bytes

Versions: 13

Compression:

Stored size: 665 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class ServerStatus < Base
        def as_json
          {
            players: players,
            server_version: server_version,
            start_time: start_time,
            vip: vip
          }
        end

        def players
          options['players']
        end

        def server_version
          options['server_version']
        end

        def start_time
          start_time = options['start_time']

          parse_datetime_with_timezone(start_time) if start_time
        end

        def vip
          options['vip']
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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