Class: RabbitMQ::FFI::ConnectionOpen Private
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RabbitMQ::FFI::ConnectionOpen
- Defined in:
- lib/rabbitmq/ffi/gen/connection_open.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(virtual_host: nil, capabilities: nil, insist: 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.
11 12 13 |
# File 'lib/rabbitmq/ffi/gen/connection_open.rb', line 11 def self.id :connection_open end |
Instance Method Details
#apply(virtual_host: nil, capabilities: nil, insist: 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.
19 20 21 22 23 24 |
# File 'lib/rabbitmq/ffi/gen/connection_open.rb', line 19 def apply(virtual_host: nil, capabilities: nil, insist: nil) self[:virtual_host] = Bytes.from_s(virtual_host.to_s) if virtual_host self[:capabilities] = Bytes.from_s(capabilities.to_s) if capabilities self[:insist] = insist unless insist.nil? 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.
34 35 36 37 |
# File 'lib/rabbitmq/ffi/gen/connection_open.rb', line 34 def free! self[:virtual_host].free! self[:capabilities].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.
15 16 17 |
# File 'lib/rabbitmq/ffi/gen/connection_open.rb', line 15 def id :connection_open 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.
26 27 28 29 30 31 32 |
# File 'lib/rabbitmq/ffi/gen/connection_open.rb', line 26 def to_h(free=false) { virtual_host: self[:virtual_host].to_s(free), capabilities: self[:capabilities].to_s(free), insist: self[:insist] } end |