Class: Krakow::Command::Req
- Inherits:
-
Krakow::Command
- Object
- Krakow::Command
- Krakow::Command::Req
- Defined in:
- lib/krakow/command/req.rb
Overview
Re-queue a message
Instance Attribute Summary
Attributes inherited from Krakow::Command
Attributes collapse
-
#message_id ⇒ String
The message_id attribute.
-
#message_id? ⇒ TrueClass, FalseClass
Truthiness of the message_id attribute.
-
#timeout ⇒ Integer
The timeout attribute.
-
#timeout? ⇒ TrueClass, FalseClass
Truthiness of the timeout attribute.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Krakow::Command
#error?, #name, ok, #ok?, response_for
Methods included from Utils::Lazy
Methods included from Utils::Logging
Class Method Details
.error ⇒ Object
25 26 27 |
# File 'lib/krakow/command/req.rb', line 25 def error %w(E_INVALID E_REQ_FAILED) end |
Instance Method Details
#message_id ⇒ String
Returns the message_id attribute.
15 |
# File 'lib/krakow/command/req.rb', line 15 attribute :message_id, String, :required => true |
#message_id? ⇒ TrueClass, FalseClass
Returns truthiness of the message_id attribute.
15 |
# File 'lib/krakow/command/req.rb', line 15 attribute :message_id, String, :required => true |
#timeout ⇒ Integer
Returns the timeout attribute.
16 |
# File 'lib/krakow/command/req.rb', line 16 attribute :timeout, Integer, :required => true |
#timeout? ⇒ TrueClass, FalseClass
Returns truthiness of the timeout attribute.
16 |
# File 'lib/krakow/command/req.rb', line 16 attribute :timeout, Integer, :required => true |
#to_line ⇒ Object
20 21 22 |
# File 'lib/krakow/command/req.rb', line 20 def to_line "#{name} #{} #{self.timeout}\n" end |