Class: Krakow::Command::Cls

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

Overview

Close connection

Instance Attribute Summary

Attributes inherited from Krakow::Command

#response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Krakow::Command

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

Methods included from Utils::Lazy

included

Methods included from Utils::Logging

level=, #log

Class Method Details

.errorObject



17
18
19
# File 'lib/krakow/command/cls.rb', line 17

def error
  %w(E_INVALID)
end

.okObject



13
14
15
# File 'lib/krakow/command/cls.rb', line 13

def ok
  %w(CLOSE_WAIT)
end

Instance Method Details

#to_lineObject



8
9
10
# File 'lib/krakow/command/cls.rb', line 8

def to_line
  "#{name}\n"
end