Class: CSstats::Writer::Player
- Inherits:
-
Object
- Object
- CSstats::Writer::Player
- Defined in:
- lib/csstats/writer/player.rb
Instance Attribute Summary collapse
-
#player ⇒ Object
readonly
Returns the value of attribute player.
Instance Method Summary collapse
-
#initialize(player) ⇒ Player
constructor
A new instance of Player.
- #write(handler) ⇒ Object
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
#player ⇒ Object (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 |