Class: RabbitMQ::FFI::ExchangeBind Private
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RabbitMQ::FFI::ExchangeBind
- Defined in:
- lib/rabbitmq/ffi/gen/exchange_bind.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, destination: nil, source: nil, routing_key: nil, nowait: nil, arguments: 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.
14 15 16 |
# File 'lib/rabbitmq/ffi/gen/exchange_bind.rb', line 14 def self.id :exchange_bind end |
Instance Method Details
#apply(ticket: nil, destination: nil, source: nil, routing_key: nil, nowait: nil, arguments: 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.
22 23 24 25 26 27 28 29 30 |
# File 'lib/rabbitmq/ffi/gen/exchange_bind.rb', line 22 def apply(ticket: nil, destination: nil, source: nil, routing_key: nil, nowait: nil, arguments: nil) self[:ticket] = Integer(ticket) if ticket self[:destination] = Bytes.from_s(destination.to_s) if destination self[:source] = Bytes.from_s(source.to_s) if source self[:routing_key] = Bytes.from_s(routing_key.to_s) if routing_key self[:nowait] = nowait unless nowait.nil? self[:arguments] = Table.from(arguments) if arguments 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.
43 44 45 46 47 48 |
# File 'lib/rabbitmq/ffi/gen/exchange_bind.rb', line 43 def free! self[:destination].free! self[:source].free! self[:routing_key].free! self[:arguments].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.
18 19 20 |
# File 'lib/rabbitmq/ffi/gen/exchange_bind.rb', line 18 def id :exchange_bind 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.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/rabbitmq/ffi/gen/exchange_bind.rb', line 32 def to_h(free=false) { ticket: self[:ticket], destination: self[:destination].to_s(free), source: self[:source].to_s(free), routing_key: self[:routing_key].to_s(free), nowait: self[:nowait], arguments: self[:arguments].to_h(free) } end |