Class: AMQ::Protocol::Queue::PurgeOk
- Defined in:
- lib/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.
1250 1251 1252 |
# File 'lib/amq/protocol/client.rb', line 1250 def initialize() @message_count = end |
Instance Attribute Details
#message_count ⇒ Object (readonly)
Returns the value of attribute message_count.
1249 1250 1251 |
# File 'lib/amq/protocol/client.rb', line 1249 def @message_count end |
Class Method Details
.decode(data) ⇒ Object
1242 1243 1244 1245 1246 1247 |
# File 'lib/amq/protocol/client.rb', line 1242 def self.decode(data) offset = offset = 0 # self-assigning offset to eliminate "assigned but unused variable" warning even if offset is not used in this method = data[offset, 4].unpack(PACK_UINT32).first offset += 4 self.new() end |
.has_content? ⇒ Boolean
1254 1255 1256 |
# File 'lib/amq/protocol/client.rb', line 1254 def self.has_content? false end |