Class: Mysql::Protocol::FieldListPacket
- Defined in:
- lib/mysql/protocol.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(*args) ⇒ FieldListPacket
constructor
A new instance of FieldListPacket.
- #serialize ⇒ Object
Constructor Details
#initialize(*args) ⇒ FieldListPacket
Returns a new instance of FieldListPacket.
541 542 543 |
# File 'lib/mysql/protocol.rb', line 541 def initialize(*args) @table, @field = args end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
539 540 541 |
# File 'lib/mysql/protocol.rb', line 539 def field @field end |
#table ⇒ Object
Returns the value of attribute table.
539 540 541 |
# File 'lib/mysql/protocol.rb', line 539 def table @table end |
Instance Method Details
#serialize ⇒ Object
545 546 547 |
# File 'lib/mysql/protocol.rb', line 545 def serialize [Mysql::COM_FIELD_LIST, "#{@table}\0#{@field}"].pack("Ca*") end |