Class: ESPNFantasyNews::Team
- Inherits:
-
Object
- Object
- ESPNFantasyNews::Team
- Defined in:
- lib/espn_fantasy_news/team.rb
Instance Attribute Summary collapse
-
#espn_player_ids ⇒ Object
readonly
Returns the value of attribute espn_player_ids.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, espn_player_ids) ⇒ Team
constructor
A new instance of Team.
- #to_s ⇒ Object
Constructor Details
#initialize(name, espn_player_ids) ⇒ Team
Returns a new instance of Team.
5 6 7 8 |
# File 'lib/espn_fantasy_news/team.rb', line 5 def initialize(name, espn_player_ids) @name = name @espn_player_ids = espn_player_ids end |
Instance Attribute Details
#espn_player_ids ⇒ Object (readonly)
Returns the value of attribute espn_player_ids.
3 4 5 |
# File 'lib/espn_fantasy_news/team.rb', line 3 def espn_player_ids @espn_player_ids end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/espn_fantasy_news/team.rb', line 3 def name @name end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/espn_fantasy_news/team.rb', line 10 def to_s self.name end |