Class: Event
- Inherits:
-
Object
- Object
- Event
- Defined in:
- lib/event.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#inning ⇒ Object
Returns the value of attribute inning.
-
#number ⇒ Object
Returns the value of attribute number.
-
#team ⇒ Object
Returns the value of attribute team.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/event.rb', line 3 def description @description end |
#inning ⇒ Object
Returns the value of attribute inning.
3 4 5 |
# File 'lib/event.rb', line 3 def inning @inning end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/event.rb', line 3 def number @number end |
#team ⇒ Object
Returns the value of attribute team.
3 4 5 |
# File 'lib/event.rb', line 3 def team @team end |
Instance Method Details
#load(element, home_or_away) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/event.rb', line 5 def load(element, home_or_away) @xml_doc = element @team = home_or_away @number = element.attributes["number"] @inning = element.attributes["inning"] @description = element.attributes["description"] end |