Class: Hip

Inherits:
Object
  • Object
show all
Defined in:
lib/hip.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute batter_id.



3
4
5
# File 'lib/hip.rb', line 3

def batter_id
  @batter_id
end

#desObject

Returns the value of attribute des.



3
4
5
# File 'lib/hip.rb', line 3

def des
  @des
end

#inningObject

Returns the value of attribute inning.



3
4
5
# File 'lib/hip.rb', line 3

def inning
  @inning
end

#pitcher_idObject

Returns the value of attribute pitcher_id.



3
4
5
# File 'lib/hip.rb', line 3

def pitcher_id
  @pitcher_id
end

#teamObject

Returns the value of attribute team.



3
4
5
# File 'lib/hip.rb', line 3

def team
  @team
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/hip.rb', line 3

def type
  @type
end

#xObject

Returns the value of attribute x.



3
4
5
# File 'lib/hip.rb', line 3

def x
  @x
end

#yObject

Returns the value of attribute y.



3
4
5
# File 'lib/hip.rb', line 3

def y
  @y
end