Class: RaccMatchParser::Card

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#minuteObject

Returns the value of attribute minute

Returns:

  • (Object)

    the current value of minute



184
185
186
# File 'lib/sportdb/parser.rb', line 184

def minute
  @minute
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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_sObject



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