lib/stomper/frames/begin.rb in stomper-0.4 vs lib/stomper/frames/begin.rb in stomper-1.0.0
- old
+ new
@@ -1,14 +1,11 @@
module Stomper
module Frames
# Encapsulates a "BEGIN" frame from the Stomp Protocol.
- #
- # See the {Stomp Protocol Specification}[http://stomp.codehaus.org/Protocol]
- # for more details.
class Begin < Stomper::Frames::ClientFrame
def initialize(transaction_id, headers={})
- super('BEGIN', headers)
- @headers.transaction = transaction_id
+ super(headers.merge(:transaction => transaction_id))
+ @headers[:transaction] = transaction_id
end
end
end
end