Class: Krakow::Command::Cls

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

Overview

Close connection

Instance Attribute Summary (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



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

def error
  %w(E_INVALID)
end

+ (Object) ok



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

def ok
  %w(CLOSE_WAIT)
end

Instance Method Details

- (Object) to_line



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

def to_line
  "#{name}\n"
end