Class: AMQ::Protocol::Connection::OpenOk
- Defined in:
- lib/amq/protocol/client.rb
Instance Attribute Summary collapse
-
#known_hosts ⇒ Object
readonly
Returns the value of attribute known_hosts.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(known_hosts) ⇒ OpenOk
constructor
A new instance of OpenOk.
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Constructor Details
#initialize(known_hosts) ⇒ OpenOk
Returns a new instance of OpenOk.
495 496 497 |
# File 'lib/amq/protocol/client.rb', line 495 def initialize(known_hosts) @known_hosts = known_hosts end |
Instance Attribute Details
#known_hosts ⇒ Object (readonly)
Returns the value of attribute known_hosts.
494 495 496 |
# File 'lib/amq/protocol/client.rb', line 494 def known_hosts @known_hosts end |
Class Method Details
.decode(data) ⇒ Object
485 486 487 488 489 490 491 492 |
# File 'lib/amq/protocol/client.rb', line 485 def self.decode(data) offset = 0 length = data[offset, 1].unpack(PACK_CHAR).first offset += 1 known_hosts = data[offset, length] offset += length self.new(known_hosts) end |
.has_content? ⇒ Boolean
499 500 501 |
# File 'lib/amq/protocol/client.rb', line 499 def self.has_content? false end |