Sha256: 3d653c1d2bac90468a1980f7f4ce436335c563441ebf2fae3b5818cc9c2cad03

Contents?: true

Size: 377 Bytes

Versions: 5

Compression:

Stored size: 377 Bytes

Contents

module ESPNFantasyNews
  class Player
    attr_reader :name, :espn_player_id, :position, :team

    def initialize(name, player_id, position, team)
      @name = name
      @espn_player_id = player_id
      @position = position
      @team = team
    end

    def to_s
      "#{self.name} - #{self.position} #{self.team}, id #{self.espn_player_id.to_s}"
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
espn-fantasy-news-0.3.0 lib/espn_fantasy_news/player.rb
espn-fantasy-news-0.2.1 lib/espn_fantasy_news/player.rb
espn-fantasy-news-0.2.0 lib/espn_fantasy_news/player.rb
espn-fantasy-news-0.1.2 lib/espn_fantasy_news/player.rb
espn-fantasy-news-0.1.1 lib/espn_fantasy_news/player.rb