lib/football_ruby/client.rb
def league_fixtures(id, opts={})
      raise IdMissingError, 'missing id' if id.nil?

      time_frame  = opts[:time_frame]
      match_day   = opts[:match_day]

      uri = "competitions/#{id}/fixtures/"
      url = time_frame.nil? ? uri : "#{uri}?timeFrame=#{time_frame}"
      url = match_day.nil? ? url : "#{url}?matchday=#{match_day}"

      json_response get(url)
    end
def league_fixtures(id, opts={})
      raise IdMissingError, 'missing id' if id.nil?

      time_frame  = opts[:time_frame]
      match_day   = opts[:match_day]

      uri = "competitions/#{id}/fixtures/"
      url = time_frame.nil? ? uri : "#{uri}?timeFrame=#{time_frame}"
      url = match_day.nil? ? url : "#{url}?matchday=#{match_day}"

      json_response get(url)
    end
List all fixtures for a certain league.
 Filters:

 time_frame=/p|n[1-9]{1,2}/
 match_day=/\d+/