Sha256: 9b3eecae06ddecd70d00eb9c8902246cbe3efc97e67d4580172bc97185f7df40
Contents?: true
Size: 783 Bytes
Versions: 4
Compression:
Stored size: 783 Bytes
Contents
module Stomper module Frames # Encapsulates a "RECEIPT" server side frame for the Stomp Protocol. # # See the {Stomp Protocol Specification}[http://stomp.codehaus.org/Protocol] # for more details. class Receipt < Stomper::Frames::ServerFrame # This class is a factory for all RECEIPT commands received. factory_for :receipt # Creates a new Receipt frame with the supplied +headers+ and +body+ def initialize(headers, body) super('RECEIPT', headers, body) end # Returns the 'receipt-id' header of the frame, which # will correspond to the 'receipt' header of the message # that caused this receipt to be sent by the stomp broker. def for @headers[:'receipt-id'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stomper-0.4 | lib/stomper/frames/receipt.rb |
stomper-0.3.2 | lib/stomper/frames/receipt.rb |
stomper-0.3.1 | lib/stomper/frames/receipt.rb |
stomper-0.3.0 | lib/stomper/frames/receipt.rb |