lib/nhl/team.rb
# Returns a list of all NHL teams.
Returns a list of all NHL teams.
Returns a list of all NHL teams .
def all
        response = Faraday.get(URL)
        data = JSON.parse(response.body)
        data[KEY].map do |team| new(team) end
      end
def all response = Faraday . get ( URL ) data = JSON . parse ( response . body ) data [ KEY ] . map do | team | new ( team ) end end
Returns a list of all NHL teams.
Returns a list of all NHL teams .