Class: RabbitMQ::FFI::ConnectionStartOk Private
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RabbitMQ::FFI::ConnectionStartOk
- Defined in:
- lib/rabbitmq/ffi/gen/connection_start_ok.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .id ⇒ Object private
Instance Method Summary collapse
- #apply(client_properties: nil, mechanism: nil, response: nil, locale: nil) ⇒ Object private
- #free! ⇒ Object private
- #id ⇒ Object private
- #to_h(free = false) ⇒ Object private
Class Method Details
.id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/rabbitmq/ffi/gen/connection_start_ok.rb', line 12 def self.id :connection_start_ok end |
Instance Method Details
#apply(client_properties: nil, mechanism: nil, response: nil, locale: nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 25 26 |
# File 'lib/rabbitmq/ffi/gen/connection_start_ok.rb', line 20 def apply(client_properties: nil, mechanism: nil, response: nil, locale: nil) self[:client_properties] = Table.from(client_properties) if client_properties self[:mechanism] = Bytes.from_s(mechanism.to_s) if mechanism self[:response] = Bytes.from_s(response.to_s) if response self[:locale] = Bytes.from_s(locale.to_s) if locale self end |
#free! ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 40 41 42 |
# File 'lib/rabbitmq/ffi/gen/connection_start_ok.rb', line 37 def free! self[:client_properties].free! self[:mechanism].free! self[:response].free! self[:locale].free! end |
#id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/rabbitmq/ffi/gen/connection_start_ok.rb', line 16 def id :connection_start_ok end |
#to_h(free = false) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 31 32 33 34 35 |
# File 'lib/rabbitmq/ffi/gen/connection_start_ok.rb', line 28 def to_h(free=false) { client_properties: self[:client_properties].to_h(free), mechanism: self[:mechanism].to_s(free), response: self[:response].to_s(free), locale: self[:locale].to_s(free) } end |