lib/mysportsfeeds/api/API_v1_0.rb
# Generate the appropriate filename for a feed request
Generate the appropriate filename for a feed request
Generate the appropriate filename for a feed request
def __make_output_filename(league, season, feed, output_format, params)
                filename = "#{feed}-#{league.downcase}-#{season}"
                if params.key?("gameid")
                    filename << "-" << params["gameid"]
                end
                if params.key?("fordate")
                    filename << "-" << params["fordate"]
                end
                filename << "." << output_format
                return filename
            end
def __make_output_filename ( league , season , feed , output_format , params ) filename = "#{feed}-#{league.downcase}-#{season}" if params . key? ( "gameid" ) filename << "-" << params [ "gameid" ] end if params . key? ( "fordate" ) filename << "-" << params [ "fordate" ] end filename << "." << output_format return filename end
Generate the appropriate filename for a feed request
Generate the appropriate filename for a feed request
league
season
feed
output_format
params