Class: AMQ::Protocol::Basic::GetEmpty
- Defined in:
- lib/amq/protocol/client.rb
Instance Attribute Summary collapse
-
#cluster_id ⇒ Object
readonly
Returns the value of attribute cluster_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_id) ⇒ GetEmpty
constructor
A new instance of GetEmpty.
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Constructor Details
#initialize(cluster_id) ⇒ GetEmpty
Returns a new instance of GetEmpty.
1847 1848 1849 |
# File 'lib/amq/protocol/client.rb', line 1847 def initialize(cluster_id) @cluster_id = cluster_id end |
Instance Attribute Details
#cluster_id ⇒ Object (readonly)
Returns the value of attribute cluster_id.
1846 1847 1848 |
# File 'lib/amq/protocol/client.rb', line 1846 def cluster_id @cluster_id end |
Class Method Details
.decode(data) ⇒ Object
1837 1838 1839 1840 1841 1842 1843 1844 |
# File 'lib/amq/protocol/client.rb', line 1837 def self.decode(data) offset = 0 length = data[offset, 1].unpack(PACK_CHAR).first offset += 1 cluster_id = data[offset, length] offset += length self.new(cluster_id) end |
.has_content? ⇒ Boolean
1851 1852 1853 |
# File 'lib/amq/protocol/client.rb', line 1851 def self.has_content? false end |