Class: RabbitMQ::FFI::BasicCancelOk Private
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RabbitMQ::FFI::BasicCancelOk
- Defined in:
- lib/rabbitmq/ffi/gen/basic_cancel_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(consumer_tag: 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.
7 8 9 |
# File 'lib/rabbitmq/ffi/gen/basic_cancel_ok.rb', line 7 def self.id :basic_cancel_ok end |
Instance Method Details
#apply(consumer_tag: 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.
15 16 17 18 |
# File 'lib/rabbitmq/ffi/gen/basic_cancel_ok.rb', line 15 def apply(consumer_tag: nil) self[:consumer_tag] = Bytes.from_s(consumer_tag.to_s) if consumer_tag 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.
24 25 26 |
# File 'lib/rabbitmq/ffi/gen/basic_cancel_ok.rb', line 24 def free! self[:consumer_tag].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.
11 12 13 |
# File 'lib/rabbitmq/ffi/gen/basic_cancel_ok.rb', line 11 def id :basic_cancel_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.
20 21 22 |
# File 'lib/rabbitmq/ffi/gen/basic_cancel_ok.rb', line 20 def to_h(free=false) {consumer_tag: self[:consumer_tag].to_s(free)} end |