class Krakow::FrameType::Message
Message
received from server
Attributes
connection[RW]
instance_stamp[R]
@return [Float] time of message instance creation
origin[RW]
Public Class Methods
new(*args)
click to toggle source
@!endgroup
Calls superclass method
# File lib/krakow/frame_type/message.rb, line 26 def initialize(*args) super @instance_stamp = Time.now.to_f end
Public Instance Methods
confirm(*args)
click to toggle source
Proxy to [Krakow::Consumer#confirm]
# File lib/krakow/frame_type/message.rb, line 57 def confirm(*args) origin.confirm(*[self, *args].compact) end
Also aliased as: finish
content()
click to toggle source
Message
content
@return [String]
# File lib/krakow/frame_type/message.rb, line 34 def content message end
requeue(*args)
click to toggle source
Proxy to [Krakow::Consumer#requeue]
# File lib/krakow/frame_type/message.rb, line 63 def requeue(*args) origin.requeue(*[self, *args].compact) end
touch(*args)
click to toggle source
Proxy to [Krakow::Consumer#touch]
# File lib/krakow/frame_type/message.rb, line 68 def touch(*args) origin.touch(*[self, *args].compact) end