Sha256: 2a00cdf3e9f60c345088bc69ae93142e25b75d3c9b63a94fa498ed53b5e83b15
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
module EveOnline module ESI class ServerStatus < Base API_ENDPOINT = 'https://esi.tech.ccp.is/v1/status/?datasource=tranquility'.freeze def as_json { start_time: start_time, players: players, server_version: server_version, vip: vip } end def start_time start_time = response['start_time'] parse_datetime_with_timezone(start_time) if start_time end def players response['players'] end def server_version response['server_version'] end def vip response['vip'] end def scope; end def url API_ENDPOINT end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.12.0 | lib/eve_online/esi/server_status.rb |