lib/nhl/team.rb
# Determines if a team plays today.
Determines if a team plays today.
Determines if a team plays today .
def plays_today?
      response = Faraday.get("#{BASE}/schedule?teamId=#{@id}")
      data = JSON.parse(response.body)
      !data['dates'].empty?
    end
def plays_today? response = Faraday . get ( "#{BASE}/schedule?teamId=#{@id}" ) data = JSON . parse ( response . body ) ! data [ 'dates' ] . empty? end
Determines if a team plays today.
Determines if a team plays today .