Class: ESPNFantasyNews::News

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(player_id, text) ⇒ News

Returns a new instance of News.



5
6
7
8
# File 'lib/espn_fantasy_news/news.rb', line 5

def initialize(player_id, text)
  @espn_player_id = player_id
  @text = text
end

Instance Attribute Details

#espn_player_idObject (readonly)

Returns the value of attribute espn_player_id.



3
4
5
# File 'lib/espn_fantasy_news/news.rb', line 3

def espn_player_id
  @espn_player_id
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/espn_fantasy_news/news.rb', line 3

def text
  @text
end