class Player

Attributes

name[RW]

Public Class Methods

new(name, steam_id, player_id) click to toggle source
# File lib/arkrb/server/player.rb, line 2
def initialize(name, steam_id, player_id)
  @name = name
  @steam_id = steam_id
  @player_id = player_id
end

Public Instance Methods

to_h() click to toggle source
# File lib/arkrb/server/player.rb, line 10
def to_h
  {
      name: name,
      steam_id: steam_id,
      player_id: player_id
  }
end
Also aliased as: to_hash
to_hash()
Alias for: to_h