Class: RaccMatchParser::RoundDef
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::RoundDef
- Defined in:
- lib/sportdb/parser.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
154 155 156 |
# File 'lib/sportdb/parser.rb', line 154 def date @date end |
#duration ⇒ Object
Returns the value of attribute duration
154 155 156 |
# File 'lib/sportdb/parser.rb', line 154 def duration @duration end |
#name ⇒ Object
Returns the value of attribute name
154 155 156 |
# File 'lib/sportdb/parser.rb', line 154 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
155 156 157 158 159 160 161 |
# File 'lib/sportdb/parser.rb', line 155 def pretty_print( printer ) printer.text( "<RoundDef " ) printer.text( self.name ) printer.text( " date=" + self.date.pretty_inspect ) if date printer.text( " durattion=" + self.duration.pretty_inspect ) if duration printer.text( ">" ) end |