Class: Mysql::Protocol::AuthenticationResultPacket
- Inherits:
-
Object
- Object
- Mysql::Protocol::AuthenticationResultPacket
- Defined in:
- lib/mysql/protocol.rb
Overview
Authentication result packet
Instance Attribute Summary collapse
-
#auth_plugin ⇒ Object
readonly
Returns the value of attribute auth_plugin.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#scramble ⇒ Object
readonly
Returns the value of attribute scramble.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ AuthenticationResultPacket
constructor
A new instance of AuthenticationResultPacket.
Constructor Details
#initialize(*args) ⇒ AuthenticationResultPacket
Returns a new instance of AuthenticationResultPacket.
851 852 853 |
# File 'lib/mysql/protocol.rb', line 851 def initialize(*args) @result, @auth_plugin, @scramble = args end |
Instance Attribute Details
#auth_plugin ⇒ Object (readonly)
Returns the value of attribute auth_plugin.
849 850 851 |
# File 'lib/mysql/protocol.rb', line 849 def auth_plugin @auth_plugin end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
849 850 851 |
# File 'lib/mysql/protocol.rb', line 849 def result @result end |
#scramble ⇒ Object (readonly)
Returns the value of attribute scramble.
849 850 851 |
# File 'lib/mysql/protocol.rb', line 849 def scramble @scramble end |
Class Method Details
.parse(pkt) ⇒ Object
842 843 844 845 846 847 |
# File 'lib/mysql/protocol.rb', line 842 def self.parse(pkt) result = pkt.utiny auth_plugin = pkt.string scramble = pkt.string self.new(result, auth_plugin, scramble) end |