Class: Mysql::Protocol::AuthenticationPacket
- Defined in:
- lib/mysql/protocol.rb
Overview
Authentication packet
Instance Attribute Summary collapse
-
#charset_number ⇒ Object
Returns the value of attribute charset_number.
-
#client_flags ⇒ Object
Returns the value of attribute client_flags.
-
#databasename ⇒ Object
Returns the value of attribute databasename.
-
#max_packet_size ⇒ Object
Returns the value of attribute max_packet_size.
-
#scrambled_password ⇒ Object
Returns the value of attribute scrambled_password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(*args) ⇒ AuthenticationPacket
constructor
A new instance of AuthenticationPacket.
- #serialize ⇒ Object
Constructor Details
#initialize(*args) ⇒ AuthenticationPacket
Returns a new instance of AuthenticationPacket.
370 371 372 |
# File 'lib/mysql/protocol.rb', line 370 def initialize(*args) @client_flags, @max_packet_size, @charset_number, @username, @scrambled_password, @databasename = args end |
Instance Attribute Details
#charset_number ⇒ Object
Returns the value of attribute charset_number.
368 369 370 |
# File 'lib/mysql/protocol.rb', line 368 def charset_number @charset_number end |
#client_flags ⇒ Object
Returns the value of attribute client_flags.
368 369 370 |
# File 'lib/mysql/protocol.rb', line 368 def client_flags @client_flags end |
#databasename ⇒ Object
Returns the value of attribute databasename.
368 369 370 |
# File 'lib/mysql/protocol.rb', line 368 def databasename @databasename end |
#max_packet_size ⇒ Object
Returns the value of attribute max_packet_size.
368 369 370 |
# File 'lib/mysql/protocol.rb', line 368 def max_packet_size @max_packet_size end |
#scrambled_password ⇒ Object
Returns the value of attribute scrambled_password.
368 369 370 |
# File 'lib/mysql/protocol.rb', line 368 def scrambled_password @scrambled_password end |
#username ⇒ Object
Returns the value of attribute username.
368 369 370 |
# File 'lib/mysql/protocol.rb', line 368 def username @username end |