lib/nfl_data/my_sports_feeds/players_feed.rb
# frozen_string_literal: true
module NflData
module MySportsFeeds
class PlayersFeed
attr_reader :client
def initialize(client: MySportsFeeds::Client.new)
@client = client
end
def feed(position: nil)
params = {position: position}
client.get(endpoint: "players", params: params)["players"]
end
end
end
end