Sha256: 1260dfed24f22e4ecf00efef3510ed73a85b7253c801081fa243d0b025529f82

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

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

        def start_time
          start_time = options['start_time']

          parse_datetime_with_timezone(start_time) if start_time
        end

        def players
          options['players']
        end

        def server_version
          options['server_version']
        end

        def vip
          options['vip']
        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/server_status.rb
eve_online-0.13.0 lib/eve_online/esi/models/server_status.rb