Class: Krakow::Command::Fin
- Inherits:
-
Krakow::Command
- Object
- Krakow::Command
- Krakow::Command::Fin
- Defined in:
- lib/krakow/command/fin.rb
Overview
Finish 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.
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
24 25 26 |
# File 'lib/krakow/command/fin.rb', line 24 def error %w(E_INVALID E_FIN_FAILED) end |
Instance Method Details
#message_id ⇒ String
Returns the message_id attribute.
15 |
# File 'lib/krakow/command/fin.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/fin.rb', line 15 attribute :message_id, String, :required => true |
#to_line ⇒ Object
19 20 21 |
# File 'lib/krakow/command/fin.rb', line 19 def to_line "#{name} #{}\n" end |