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