Class: RaccMatchParser::Card
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Card
- Defined in:
- lib/sportdb/parser.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute
184 185 186 |
# File 'lib/sportdb/parser.rb', line 184 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
184 185 186 |
# File 'lib/sportdb/parser.rb', line 184 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
192 193 194 |
# File 'lib/sportdb/parser.rb', line 192 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
185 186 187 188 189 190 |
# File 'lib/sportdb/parser.rb', line 185 def to_s buf = String.new buf << "#{self.name}" buf << " #{self.minute.to_s}" if self.minute buf end |