Class: Student_list_DB
- Inherits:
-
Basic_format
- Object
- Basic_format
- Student_list_DB
- Defined in:
- lib/files/Student_list_DB.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize ⇒ Student_list_DB
constructor
A new instance of Student_list_DB.
Constructor Details
#initialize ⇒ Student_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
#client ⇒ Object
Returns the value of attribute client.
33 34 35 |
# File 'lib/files/Student_list_DB.rb', line 33 def client @client end |