Class: SportDb::Parser::Referee

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

Overview

RefereeLine

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



26
27
28
# File 'lib/sportdb/parser/parse_tree-props.rb', line 26

def country
  @country
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



26
27
28
# File 'lib/sportdb/parser/parse_tree-props.rb', line 26

def name
  @name
end

Instance Method Details

#pretty_print(q) ⇒ Object



34
35
36
# File 'lib/sportdb/parser/parse_tree-props.rb', line 34

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

#to_sObject



27
28
29
30
31
32
# File 'lib/sportdb/parser/parse_tree-props.rb', line 27

def to_s
  buf = String.new
  buf <<  name
  buf << " (#{country})"    if country
  buf
end