Sha256: 12beaed58624baff2c857b38eda269a9c92755e4d68fc891f0b3b46ced59b6cd

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

# frozen_string_literal: true

class StudentList

  def initialize(adapter)
    @adapter = adapter
  end

  def student_by_id(id_student)
    @adapter.student_by_id(id_student)
  end

  def add_student(student)
    @adapter.add_student(student)
  end

  def delete_student(id_student)
    @adapter.delete_student(id_student)
  end

  def replace_student(id_student, student)
    @adapter.replace_student(id_student, student)

  end

  def count_student
    @adapter.count_student
  end

  def get_k_n_student_short_list(k,n,data_list)
    @adapter.get_k_n_student_short_list(k,n,data_list)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shanti555890-1.1.5 lib/source/database/student_list.rb
shanti555890-1.1.4 lib/source/database/student_list.rb