Class: ESPNFantasyNews::News
- Inherits:
-
Object
- Object
- ESPNFantasyNews::News
- Defined in:
- lib/espn_fantasy_news/news.rb
Instance Attribute Summary collapse
-
#espn_player_id ⇒ Object
readonly
Returns the value of attribute espn_player_id.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(player_id, text) ⇒ News
constructor
A new instance of News.
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_id ⇒ Object (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 |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/espn_fantasy_news/news.rb', line 3 def text @text end |