Class: SportDb::Parser::Booking
- Defined in:
- lib/sportdb/parser/parse_tree-props.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute
107 108 109 |
# File 'lib/sportdb/parser/parse_tree-props.rb', line 107 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
107 108 109 |
# File 'lib/sportdb/parser/parse_tree-props.rb', line 107 def name @name end |
Instance Method Details
#pretty_print(q) ⇒ Object
115 116 117 |
# File 'lib/sportdb/parser/parse_tree-props.rb', line 115 def pretty_print( q ) q.text( to_s ) end |
#to_s ⇒ Object
108 109 110 111 112 113 |
# File 'lib/sportdb/parser/parse_tree-props.rb', line 108 def to_s buf = String.new buf << "#{name}" buf << " #{minute.to_s}" if minute buf end |