Class: Krakow::Command::Fin

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

Overview

Finish a message

Instance Attribute Summary

Attributes inherited from Krakow::Command

#response

Attributes collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Krakow::Command

#error?, #name, ok, #ok?, response_for

Methods included from Utils::Lazy

included

Methods included from Utils::Logging

level=, #log

Class Method Details

.errorObject



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

def error
  %w(E_INVALID E_FIN_FAILED)
end

Instance Method Details

#message_idString

Returns the message_id attribute.

Returns:

  • (String)

    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.

Returns:

  • (TrueClass, FalseClass)

    truthiness of the message_id attribute



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

attribute :message_id, String, :required => true

#to_lineObject



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

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