class Patterns::Kicker

Kicker -> FootballPlayer

Overrides required methods from the FootballPlayer class

Public Class Methods

new() click to toggle source

Initializes the kicker class

Calls superclass method Patterns::FootballPlayer.new
# File app/models/bridge/kicker.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/kicker.rb, line 25
def kick_ball
  'The kicker kicks the ball!'
end
position() click to toggle source

Overrides FootballPlayer position method

# File app/models/bridge/kicker.rb, line 30
def position
  'Kicker'
end
run_ball() click to toggle source

Overrides FootballPlayer #run_ball method

# File app/models/bridge/kicker.rb, line 20
def run_ball
  'The kicker tries to run the ball and will likely be fired before the next game.'
end
salary() click to toggle source

Overrides FootballPlayer salary method

# File app/models/bridge/kicker.rb, line 35
def salary
  '30 Million over 10 years.'
end
throw_ball() click to toggle source

Overrides FootballPlayer #throw_ball method

# File app/models/bridge/kicker.rb, line 15
def throw_ball
  'The kicker tries to throw the ball, and it is an hilarious failure.'
end