Class: RaccMatchParser::RoundDef

Inherits:
Struct
  • Object
show all
Defined in:
lib/sportdb/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



220
221
222
# File 'lib/sportdb/parser.rb', line 220

def date
  @date
end

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



220
221
222
# File 'lib/sportdb/parser.rb', line 220

def duration
  @duration
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



220
221
222
# File 'lib/sportdb/parser.rb', line 220

def name
  @name
end

Instance Method Details

#pretty_print(printer) ⇒ Object



221
222
223
224
225
226
227
# File 'lib/sportdb/parser.rb', line 221

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