function scopeUrl(options, inst) {
    options = _.extend(_.clone(options || {}), inst)
    if (typeof options !== 'object' && (!options.tournament_id || !options.flight_id))
      throw new Error('tournament_id or flight_id required to make tibreak preference api calls')

    var url = ''
    if (options.tournament_id) {
      url += ngin.Tournament.urlRoot() + '/' + options.tournament_id
    } else if (options.flight_id) {
      url += ngin.Flight.urlRoot() + '/' + options.flight_id
    }
    return url + TiebreakPreference.urlRoot()
  }
function scopeUrl(options, inst) {
    options = _.extend(_.clone(options || {}), inst)
    if (typeof options !== 'object' && (!options.tournament_id || !options.flight_id))
      throw new Error('tournament_id or flight_id required to make tibreak preference api calls')

    var url = ''
    if (options.tournament_id) {
      url += ngin.Tournament.urlRoot() + '/' + options.tournament_id
    } else if (options.flight_id) {
      url += ngin.Flight.urlRoot() + '/' + options.flight_id
    }
    return url + TiebreakPreference.urlRoot()
  }
function scopeUrl ( options , inst ) { options = _ . extend ( _ . clone ( options || { } ) , inst ) if ( typeof options !== 'object' && ( ! options . tournament_id || ! options . flight_id ) ) throw new Error ( 'tournament_id or flight_id required to make tibreak preference api calls' ) var url = '' if ( options . tournament_id ) { url += ngin . Tournament . urlRoot ( ) + '/' + options . tournament_id } else if ( options . flight_id ) { url += ngin . Flight . urlRoot ( ) + '/' + options . flight_id } return url + TiebreakPreference . urlRoot ( ) }
Scopes the url to the tournament, league, or flight

@param {Object} options
@returns {String}
@api public
Scopes the url to the tournament league or flight