Sha256: 44c014a4839c7cc84b614c9fcd3c137714eda90e8ff462e15319d7d175435db7

Contents?: true

Size: 230 Bytes

Versions: 14

Compression:

Stored size: 230 Bytes

Contents

module SportsDataApi
  module Nfl
    class TeamRoster
      attr_reader :players

      def initialize(json)
        @players = json['players'].map do |player|
          Player.new(player)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sports_data_api-0.14.1 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.14.0 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.13.0 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.12.1 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.12.0 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.11.6 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.11.5 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.11.3 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.11.2 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.11.1 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.11.0 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.10.1 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.10.0 lib/sports_data_api/nfl/team_roster.rb
sports_data_api-0.9.2 lib/sports_data_api/nfl/team_roster.rb