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



175
176
177
# File 'lib/sportdb/parser.rb', line 175

def minute
  @minute
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



175
176
177
# File 'lib/sportdb/parser.rb', line 175

def name
  @name
end

Instance Method Details

#pretty_print(printer) ⇒ Object



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

def pretty_print( printer )
  printer.text( to_s )
end

#to_sObject



176
177
178
179
180
181
# File 'lib/sportdb/parser.rb', line 176

def to_s
  buf = String.new
  buf << "#{self.name}"
  buf << " #{self.minute.to_s}"   if self.minute
  buf
end