Class: Hip
- Inherits:
-
Object
- Object
- Hip
- Defined in:
- lib/hip.rb
Instance Attribute Summary collapse
-
#batter_id ⇒ Object
Returns the value of attribute batter_id.
-
#des ⇒ Object
Returns the value of attribute des.
-
#inning ⇒ Object
Returns the value of attribute inning.
-
#pitcher_id ⇒ Object
Returns the value of attribute pitcher_id.
-
#team ⇒ Object
Returns the value of attribute team.
-
#type ⇒ Object
Returns the value of attribute type.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(element) ⇒ Hip
constructor
A new instance of Hip.
Constructor Details
#initialize(element) ⇒ Hip
Returns a new instance of Hip.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/hip.rb', line 6 def initialize(element) @des = element.attributes["des"] @des = element.attributes["x"] @des = element.attributes["y"] @des = element.attributes["batter"] @des = element.attributes["pitcher"] @des = element.attributes["type"] @des = element.attributes["team"] @des = element.attributes["inning"] end |
Instance Attribute Details
#batter_id ⇒ Object
Returns the value of attribute batter_id.
3 4 5 |
# File 'lib/hip.rb', line 3 def batter_id @batter_id end |
#des ⇒ Object
Returns the value of attribute des.
3 4 5 |
# File 'lib/hip.rb', line 3 def des @des end |
#inning ⇒ Object
Returns the value of attribute inning.
3 4 5 |
# File 'lib/hip.rb', line 3 def inning @inning end |
#pitcher_id ⇒ Object
Returns the value of attribute pitcher_id.
3 4 5 |
# File 'lib/hip.rb', line 3 def pitcher_id @pitcher_id end |
#team ⇒ Object
Returns the value of attribute team.
3 4 5 |
# File 'lib/hip.rb', line 3 def team @team end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/hip.rb', line 3 def type @type end |
#x ⇒ Object
Returns the value of attribute x.
3 4 5 |
# File 'lib/hip.rb', line 3 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
3 4 5 |
# File 'lib/hip.rb', line 3 def y @y end |