Class: Krakow::Command::Touch

Inherits:
Krakow::Command show all
Defined in:
lib/krakow/command/touch.rb

Overview

Reset timeout for in-flight message

Instance Attribute Summary (collapse)

Attributes (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Krakow::FrameType) response Originally defined in class Krakow::Command

Returns response to command

Returns:

Class Method Details

+ (Object) error



24
25
26
# File 'lib/krakow/command/touch.rb', line 24

def error
  %w(E_INVALID E_TOUCH_FAILED)
end

Instance Method Details

- (String) message_id

Returns the message_id attribute

Returns:

  • (String)

    the message_id attribute



15
# File 'lib/krakow/command/touch.rb', line 15

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



15
# File 'lib/krakow/command/touch.rb', line 15

attribute :message_id, String, :required => true

- (Object) to_line



19
20
21
# File 'lib/krakow/command/touch.rb', line 19

def to_line
  "#{name} #{message_id}\n"
end