Class: Student_list_DB

Inherits:
Basic_format
  • Object
show all
Defined in:
lib/files/Student_list_DB.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStudent_list_DB

Returns a new instance of Student_list_DB.



34
35
36
37
38
39
40
41
# File 'lib/files/Student_list_DB.rb', line 34

def initialize
  self.client = Mysql2::Client.new(
    host: 'localhost',
    username: 'root',
    password: 'йцукен123456789',
    database: 'students'
  )
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



33
34
35
# File 'lib/files/Student_list_DB.rb', line 33

def client
  @client
end