Class: GorgonAMQ::Protocol::Queue::PurgeOk
- Defined in:
- lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb
Instance Attribute Summary collapse
-
#message_count ⇒ Object
readonly
Returns the value of attribute message_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message_count) ⇒ PurgeOk
constructor
A new instance of PurgeOk.
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Constructor Details
#initialize(message_count) ⇒ PurgeOk
Returns a new instance of PurgeOk.
1177 1178 1179 |
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 1177 def initialize() @message_count = end |
Instance Attribute Details
#message_count ⇒ Object (readonly)
Returns the value of attribute message_count.
1176 1177 1178 |
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 1176 def @message_count end |
Class Method Details
.decode(data) ⇒ Object
1169 1170 1171 1172 1173 1174 |
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 1169 def self.decode(data) offset = 0 = data[offset, 4].unpack(PACK_UINT32).first offset += 4 self.new() end |
.has_content? ⇒ Boolean
1181 1182 1183 |
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 1181 def self.has_content? false end |