class Patterns::Runningback

Runningback -> FootballPlayer

Overrides required methods from the FootballPlayer class

Public Class Methods

new() click to toggle source

Initializes the Runningback Class

Calls superclass method Patterns::FootballPlayer.new
# File app/models/bridge/runningback.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/runningback.rb, line 20
def kick_ball
  'The running back kicks the ball, and it lands 10 yards away.'
end
position() click to toggle source

Overrides FootballPlayer position method

# File app/models/bridge/runningback.rb, line 25
def position
  'Runningback'
end
run_ball() click to toggle source

Overrides FootballPlayer #run_ball method

# File app/models/bridge/runningback.rb, line 15
def run_ball
  'The runningback runs the ball!'
end
salary() click to toggle source

Overrides FootballPlayer salary method

# File app/models/bridge/runningback.rb, line 30
def salary
  '70 Million over 4 years.'
end