Class: ESPNFantasyNews::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/espn_fantasy_news/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idsObject (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

#nameObject (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_sObject



10
11
12
# File 'lib/espn_fantasy_news/team.rb', line 10

def to_s
  self.name
end