Class: CSstats::Writer::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/csstats/writer/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(player) ⇒ Player

Returns a new instance of Player.



6
7
8
# File 'lib/csstats/writer/player.rb', line 6

def initialize(player)
  @player = player
end

Instance Attribute Details

#playerObject (readonly)

Returns the value of attribute player.



4
5
6
# File 'lib/csstats/writer/player.rb', line 4

def player
  @player
end

Instance Method Details

#write(handler) ⇒ Object



10
11
12
13
14
# File 'lib/csstats/writer/player.rb', line 10

def write(handler)
  write_nick(handler)
  write_uniq(handler)
  write_general_data(handler)
end