Class: MLB::FreeAgent
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::FreeAgent
- Defined in:
- lib/mlb/free_agent.rb
Overview
Represents a free agent
Instance Attribute Summary collapse
-
#date_declared ⇒ Date
Returns the date the player declared free agency.
-
#date_signed ⇒ Date
Returns the date the player signed.
-
#new_team ⇒ Team
Returns the team the player signed with.
-
#notes ⇒ String
Returns signing notes.
-
#original_team ⇒ Team
Returns the team the player left.
-
#player ⇒ Player
Returns the player.
-
#position ⇒ Position
Returns the player’s position.
Instance Attribute Details
#date_declared ⇒ Date
Returns the date the player declared free agency
58 |
# File 'lib/mlb/free_agent.rb', line 58 attribute :date_declared, Shale::Type::Date |
#date_signed ⇒ Date
Returns the date the player signed
50 |
# File 'lib/mlb/free_agent.rb', line 50 attribute :date_signed, Shale::Type::Date |
#new_team ⇒ Team
Returns the team the player signed with
34 |
# File 'lib/mlb/free_agent.rb', line 34 attribute :new_team, Team |
#notes ⇒ String
Returns signing notes
42 |
# File 'lib/mlb/free_agent.rb', line 42 attribute :notes, Shale::Type::String |
#original_team ⇒ Team
Returns the team the player left
26 |
# File 'lib/mlb/free_agent.rb', line 26 attribute :original_team, Team |
#player ⇒ Player
Returns the player
18 |
# File 'lib/mlb/free_agent.rb', line 18 attribute :player, Player |
#position ⇒ Position
Returns the player’s position
66 |
# File 'lib/mlb/free_agent.rb', line 66 attribute :position, Position |