Class: RabbitMQ::FFI::QueuePurge Private
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RabbitMQ::FFI::QueuePurge
- Defined in:
- lib/rabbitmq/ffi/gen/queue_purge.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(ticket: nil, queue: nil, nowait: 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/queue_purge.rb', line 11 def self.id :queue_purge end |
Instance Method Details
#apply(ticket: nil, queue: nil, nowait: 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/queue_purge.rb', line 19 def apply(ticket: nil, queue: nil, nowait: nil) self[:ticket] = Integer(ticket) if ticket self[:queue] = Bytes.from_s(queue.to_s) if queue self[:nowait] = nowait unless nowait.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 |
# File 'lib/rabbitmq/ffi/gen/queue_purge.rb', line 34 def free! self[:queue].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/queue_purge.rb', line 15 def id :queue_purge 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/queue_purge.rb', line 26 def to_h(free=false) { ticket: self[:ticket], queue: self[:queue].to_s(free), nowait: self[:nowait] } end |