class NflData::MySportsFeeds::PlayersFeed
Attributes
client[R]
Public Class Methods
new(client: MySportsFeeds::Client.new)
click to toggle source
# File lib/nfl_data/my_sports_feeds/players_feed.rb, line 8 def initialize(client: MySportsFeeds::Client.new) @client = client end
Public Instance Methods
feed(position: nil)
click to toggle source
# File lib/nfl_data/my_sports_feeds/players_feed.rb, line 12 def feed(position: nil) params = {position: position} client.get(endpoint: "players", params: params)["players"] end