Class: CSstats::Parser::Reader::Player
- Inherits:
-
Object
- Object
- CSstats::Parser::Reader::Player
- Defined in:
- lib/csstats/parser/reader/player.rb
Instance Attribute Summary collapse
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream) ⇒ Player
constructor
A new instance of Player.
- #parse ⇒ Object
Constructor Details
#initialize(stream) ⇒ Player
Returns a new instance of Player.
7 8 9 |
# File 'lib/csstats/parser/reader/player.rb', line 7 def initialize(stream) @stream = stream end |
Instance Attribute Details
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
5 6 7 |
# File 'lib/csstats/parser/reader/player.rb', line 5 def stream @stream end |
Instance Method Details
#parse ⇒ Object
11 12 13 14 15 16 |
# File 'lib/csstats/parser/reader/player.rb', line 11 def parse player = CSstats::Player.new parse_columns(player) return unless player.nick player end |