class Caldera::Events::StatsEvent
Constants
- Cpu
- Memory
Attributes
cpu[R]
memory[R]
playing_players[R]
uptime[R]
Public Class Methods
new(data, _node)
click to toggle source
# File lib/caldera/events.rb, line 75 def initialize(data, _node) @playing_players = data['playingPlayers'] @memory = Memory.new(**data['memory']) cpu_data = data['cpu'] snake_case_data = { cores: cpu_data['cores'], system_load: cpu_data['systemLoad'], lavalink_load: cpu_data['lavalinkLoad'] } @cpu = Cpu.new(**snake_case_data) @uptime = data['uptime'] end