class Patterns::Quarterback
Overrides required methods from the FootballPlayer class
Public Class Methods
new()
click to toggle source
Initializes the Quarterback class
Calls superclass method
Patterns::FootballPlayer.new
# File app/models/bridge/quarterback.rb, line 10 def initialize super() end
Public Instance Methods
kick_ball()
click to toggle source
Overrides FootballPlayer #kick_ball method
# File app/models/bridge/quarterback.rb, line 25 def kick_ball puts 'The quarterback kicks the ball! If it is Tom Brady, he drop kicks it.' end
position()
click to toggle source
Overrides FootballPlayer position method
# File app/models/bridge/quarterback.rb, line 30 def position 'Quarterback' end
run_ball()
click to toggle source
Overrides FootballPlayer #run_ball method
# File app/models/bridge/quarterback.rb, line 20 def run_ball puts 'The quarterback runs the ball! Hopefully he is a young Michael Vick.' end
salary()
click to toggle source
Overrides FootballPlayer salary method
# File app/models/bridge/quarterback.rb, line 35 def salary '100 Million over 5 years.' end
throw_ball()
click to toggle source
Overrides FootballPlayer #throw_ball method
# File app/models/bridge/quarterback.rb, line 15 def throw_ball puts 'The quarterback throws the ball!' end