Class: EveOnline::ESI::Models::ServerStatus

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/server_status.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
14
# File 'lib/eve_online/esi/models/server_status.rb', line 7

def as_json
  {
    players: players,
    server_version: server_version,
    start_time: start_time,
    vip: vip
  }
end

#playersObject



16
17
18
# File 'lib/eve_online/esi/models/server_status.rb', line 16

def players
  options["players"]
end

#server_versionObject



20
21
22
# File 'lib/eve_online/esi/models/server_status.rb', line 20

def server_version
  options["server_version"]
end

#start_timeObject



24
25
26
27
28
# File 'lib/eve_online/esi/models/server_status.rb', line 24

def start_time
  start_time = options["start_time"]

  parse_datetime_with_timezone(start_time) if start_time
end

#vipObject



30
31
32
# File 'lib/eve_online/esi/models/server_status.rb', line 30

def vip
  options["vip"]
end