Thermodynamics of canonical ensemble of an ideal gas in presence of Planck-scale effects