class Patterns::FootballPlayer
Modules: Patterns::AbstractInterface
An interface class that represents a football player and some of the activities a player might perform
Public Class Methods
initializes the FootballPlayer class
# File app/models/bridge/football_player.rb, line 13 def initialize end
Public Instance Methods
Raises an exception if the function is not overridden in a child class Returns a string that represents a description of the action that occurs when the player kicks the ball
# File app/models/bridge/football_player.rb, line 31 def kick_ball FootballPlayer.api_not_implemented(self) end
Raises an exception if the function is not overridden in a child class Returns a string that represents the player's position
# File app/models/bridge/football_player.rb, line 37 def position FootballPlayer.api_not_implemented(self) end
Raises an exception if the function is not overridden in a child class Returns a string that represents a description of the action that occurs when the player runs the ball
# File app/models/bridge/football_player.rb, line 25 def run_ball FootballPlayer.api_not_implemented(self) end
Raises an exception if the function is not overridden in a child class Returns a string representing a description of the player's salary
# File app/models/bridge/football_player.rb, line 43 def salary FootballPlayer.api_not_implemented(self) end
Raises an exception if the function is not overridden in a child class Returns a string that represents a description of the action that occurs when the player throws the ball
# File app/models/bridge/football_player.rb, line 19 def throw_ball FootballPlayer.api_not_implemented(self) end