Class: RabbitMQ::FFI::BasicDeliver Private
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RabbitMQ::FFI::BasicDeliver
- Defined in:
- lib/rabbitmq/ffi/gen/basic_deliver.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, delivery_tag: nil, redelivered: nil, exchange: nil, routing_key: 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.
13 14 15 |
# File 'lib/rabbitmq/ffi/gen/basic_deliver.rb', line 13 def self.id :basic_deliver end |
Instance Method Details
#apply(consumer_tag: nil, delivery_tag: nil, redelivered: nil, exchange: nil, routing_key: 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.
21 22 23 24 25 26 27 28 |
# File 'lib/rabbitmq/ffi/gen/basic_deliver.rb', line 21 def apply(consumer_tag: nil, delivery_tag: nil, redelivered: nil, exchange: nil, routing_key: nil) self[:consumer_tag] = Bytes.from_s(consumer_tag.to_s) if consumer_tag self[:delivery_tag] = Integer(delivery_tag) if delivery_tag self[:redelivered] = redelivered unless redelivered.nil? self[:exchange] = Bytes.from_s(exchange.to_s) if exchange self[:routing_key] = Bytes.from_s(routing_key.to_s) if routing_key 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.
40 41 42 43 44 |
# File 'lib/rabbitmq/ffi/gen/basic_deliver.rb', line 40 def free! self[:consumer_tag].free! self[:exchange].free! self[:routing_key].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.
17 18 19 |
# File 'lib/rabbitmq/ffi/gen/basic_deliver.rb', line 17 def id :basic_deliver 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.
30 31 32 33 34 35 36 37 38 |
# File 'lib/rabbitmq/ffi/gen/basic_deliver.rb', line 30 def to_h(free=false) { consumer_tag: self[:consumer_tag].to_s(free), delivery_tag: self[:delivery_tag], redelivered: self[:redelivered], exchange: self[:exchange].to_s(free), routing_key: self[:routing_key].to_s(free) } end |