Class: RaccMatchParser::Goal
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Goal
- Defined in:
- lib/sportdb/parser.rb
Instance Attribute Summary collapse
-
#minutes ⇒ Object
Returns the value of attribute minutes.
-
#player ⇒ Object
Returns the value of attribute player.
Instance Method Summary collapse
Instance Attribute Details
#minutes ⇒ Object
Returns the value of attribute minutes
283 284 285 |
# File 'lib/sportdb/parser.rb', line 283 def minutes @minutes end |
#player ⇒ Object
Returns the value of attribute player
283 284 285 |
# File 'lib/sportdb/parser.rb', line 283 def player @player end |
Instance Method Details
#pretty_print(printer) ⇒ Object
292 293 294 |
# File 'lib/sportdb/parser.rb', line 292 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
284 285 286 287 288 289 290 |
# File 'lib/sportdb/parser.rb', line 284 def to_s buf = String.new buf << "#{self.player}" buf << " " buf << minutes.map { |min| min.to_s }.join(' ') buf end |