Module: CSstats::Parser
- Defined in:
- lib/csstats/parser.rb,
lib/csstats/parser/reader.rb,
lib/csstats/parser/writer.rb,
lib/csstats/parser/reader/player.rb,
lib/csstats/parser/writer/player.rb,
lib/csstats/parser/reader/players.rb,
lib/csstats/parser/writer/players.rb,
lib/csstats/parser/reader/file_reader.rb,
lib/csstats/parser/reader/file_streamer.rb,
lib/csstats/parser/writer/file_streamer.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.get_players(client) ⇒ Object
7 8 9 10 11 |
# File 'lib/csstats/parser.rb', line 7 def get_players(client) CSstats::Parser::Reader::Players.new( client.file_path, max_players: client.max_players ).parse end |
.write_players(client, players) ⇒ Object
13 14 15 |
# File 'lib/csstats/parser.rb', line 13 def write_players(client, players) CSstats::Parser::Writer::Players.new(client.file_path).write(players) end |