Class: RaccMatchParser::MatchLine
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::MatchLine
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#geo ⇒ Object
Returns the value of attribute geo.
-
#ord ⇒ Object
Returns the value of attribute ord.
-
#score ⇒ Object
Returns the value of attribute score.
-
#status ⇒ Object
Returns the value of attribute status.
-
#team1 ⇒ Object
Returns the value of attribute team1.
-
#team2 ⇒ Object
Returns the value of attribute team2.
-
#time ⇒ Object
Returns the value of attribute time.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
-
#wday ⇒ Object
Returns the value of attribute wday.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def date @date end |
#geo ⇒ Object
Returns the value of attribute geo
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def geo @geo end |
#ord ⇒ Object
Returns the value of attribute ord
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def ord @ord end |
#score ⇒ Object
Returns the value of attribute score
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def score @score end |
#status ⇒ Object
Returns the value of attribute status
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def status @status end |
#team1 ⇒ Object
Returns the value of attribute team1
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def team1 @team1 end |
#team2 ⇒ Object
Returns the value of attribute team2
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def team2 @team2 end |
#time ⇒ Object
Returns the value of attribute time
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def time @time end |
#timezone ⇒ Object
Returns the value of attribute timezone
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def timezone @timezone end |
#wday ⇒ Object
Returns the value of attribute wday
171 172 173 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def wday @wday end |
Instance Method Details
#pretty_print(printer) ⇒ Object
177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/sportdb/parser/racc_tree.rb', line 177 def pretty_print( printer ) printer.text( "<MatchLine " ) printer.text( "#{self.team1} v #{self.team2}") printer.breakable members.zip(values) do |name, value| next if [:team1, :team2].include?( name ) next if value.nil? printer.text( "#{name}=#{value.pretty_inspect}" ) end printer.text( ">" ) end |