Class: SportDb::Parser::Minute
- Defined in:
- lib/sportdb/parser/parse_tree-match.rb
Instance Attribute Summary collapse
-
#m ⇒ Object
Returns the value of attribute m.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#secs ⇒ Object
Returns the value of attribute secs.
Instance Method Summary collapse
Instance Attribute Details
#m ⇒ Object
Returns the value of attribute m
289 290 291 |
# File 'lib/sportdb/parser/parse_tree-match.rb', line 289 def m @m end |
#offset ⇒ Object
Returns the value of attribute offset
289 290 291 |
# File 'lib/sportdb/parser/parse_tree-match.rb', line 289 def offset @offset end |
#secs ⇒ Object
Returns the value of attribute secs
289 290 291 |
# File 'lib/sportdb/parser/parse_tree-match.rb', line 289 def secs @secs end |
Instance Method Details
#as_json ⇒ Object
290 |
# File 'lib/sportdb/parser/parse_tree-match.rb', line 290 def as_json(*) to_s; end |
#pretty_print(q) ⇒ Object
301 302 303 |
# File 'lib/sportdb/parser/parse_tree-match.rb', line 301 def pretty_print( q ) q.text( to_s ) end |
#to_s ⇒ Object
292 293 294 295 296 297 298 299 |
# File 'lib/sportdb/parser/parse_tree-match.rb', line 292 def to_s buf = String.new buf << "#{m}" buf << "'" buf << "+#{offset}" if offset buf << "/#{secs} secs" if secs buf end |