Class: AMQ::Protocol::Connection::SecureOk

Inherits:
Method
  • Object
show all
Defined in:
lib/amq/protocol/client.rb

Class Method Summary collapse

Methods inherited from Method

encode_body, index, inherited, instantiate, method_id, methods, name, split_headers

Class Method Details

.encode(response) ⇒ Object

u’response = nil’

Returns:



311
312
313
314
315
316
317
# File 'lib/amq/protocol/client.rb', line 311

def self.encode(response)
  channel = 0
  buffer = @packed_indexes.dup
  buffer << [response.to_s.bytesize].pack(PACK_UINT32)
  buffer << response.to_s
  MethodFrame.new(buffer, channel)
end

.has_content?Boolean

Returns:

  • (Boolean)


305
306
307
# File 'lib/amq/protocol/client.rb', line 305

def self.has_content?
  false
end