Class: Krakow::FrameType::Message

Inherits:
Krakow::FrameType show all
Defined in:
lib/krakow/frame_type/message.rb

Overview

Message received from server

Constant Summary

Instance Attribute Summary (collapse)

Attributes (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Hash) arguments (readonly) Originally defined in module Utils::Lazy::InstanceMethods

Returns argument hash

Returns:

  • (Hash)

    argument hash

- (Krakow::Consumer) origin

Returns:



9
10
11
# File 'lib/krakow/frame_type/message.rb', line 9

def origin
  @origin
end

Instance Method Details

- (Integer) attempts

Returns the attempts attribute

Returns:

  • (Integer)

    the attempts attribute



18
# File 'lib/krakow/frame_type/message.rb', line 18

attribute :attempts, Integer, :required => true

- (TrueClass, FalseClass) attempts?

Returns truthiness of the attempts attribute

Returns:

  • (TrueClass, FalseClass)

    truthiness of the attempts attribute



18
# File 'lib/krakow/frame_type/message.rb', line 18

attribute :attempts, Integer, :required => true

- (Object) confirm(*args) Also known as: finish

Proxy to [Krakow::Consumer#confirm]



42
43
44
# File 'lib/krakow/frame_type/message.rb', line 42

def confirm(*args)
  origin.confirm(*[self, *args].compact)
end

- (String) content

Message content

Returns:

  • (String)


28
29
30
# File 'lib/krakow/frame_type/message.rb', line 28

def content
  message
end

- (String) message

Returns the message attribute

Returns:

  • (String)

    the message attribute



21
# File 'lib/krakow/frame_type/message.rb', line 21

attribute :message, String, :required => true

- (TrueClass, FalseClass) message?

Returns truthiness of the message attribute

Returns:

  • (TrueClass, FalseClass)

    truthiness of the message attribute



21
# File 'lib/krakow/frame_type/message.rb', line 21

attribute :message, String, :required => true

- (String) message_id

Returns the message_id attribute

Returns:

  • (String)

    the message_id attribute



20
# File 'lib/krakow/frame_type/message.rb', line 20

attribute :message_id, String, :required => true

- (TrueClass, FalseClass) message_id?

Returns truthiness of the message_id attribute

Returns:

  • (TrueClass, FalseClass)

    truthiness of the message_id attribute



20
# File 'lib/krakow/frame_type/message.rb', line 20

attribute :message_id, String, :required => true

- (Object) requeue(*args)

Proxy to [Krakow::Consumer#requeue]



48
49
50
# File 'lib/krakow/frame_type/message.rb', line 48

def requeue(*args)
  origin.requeue(*[self, *args].compact)
end

- (Integer) timestamp

Returns the timestamp attribute

Returns:

  • (Integer)

    the timestamp attribute



19
# File 'lib/krakow/frame_type/message.rb', line 19

attribute :timestamp, Integer, :required => true

- (TrueClass, FalseClass) timestamp?

Returns truthiness of the timestamp attribute

Returns:

  • (TrueClass, FalseClass)

    truthiness of the timestamp attribute



19
# File 'lib/krakow/frame_type/message.rb', line 19

attribute :timestamp, Integer, :required => true

- (Object) touch(*args)

Proxy to [Krakow::Consumer#touch]



53
54
55
# File 'lib/krakow/frame_type/message.rb', line 53

def touch(*args)
  origin.touch(*[self, *args].compact)
end