def new_fit_data_record(record_type, field_values = {})
      case record_type
      when 'file_id'
        @file_id = (record = FileId.new(field_values))
      when 'software'
        @software = (record = Software.new(field_values))
      when 'device_info'
        @device_infos << (record = DeviceInfo.new(field_values))
      when 'monitoring_info'
        @monitoring_infos << (record = MonitoringInfo.new(field_values))
      when 'monitoring'
        @monitorings << (record = Monitoring.new(field_values))
      else
        record = nil
      end

      record
    end
def new_fit_data_record(record_type, field_values = {})
      case record_type
      when 'file_id'
        @file_id = (record = FileId.new(field_values))
      when 'software'
        @software = (record = Software.new(field_values))
      when 'device_info'
        @device_infos << (record = DeviceInfo.new(field_values))
      when 'monitoring_info'
        @monitoring_infos << (record = MonitoringInfo.new(field_values))
      when 'monitoring'
        @monitorings << (record = Monitoring.new(field_values))
      else
        record = nil
      end

      record
    end
Create a new FitDataRecord.
 @param record_type [String] Type that identifies the FitDataRecord
        derived class to create.
 @param field_values [Hash] A Hash that provides initial values for
        certain fields of the FitDataRecord.
 @return FitDataRecord