Class: Krakow::Command::Rdy

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

Overview

Update RDY state

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/rdy.rb', line 24

def error
  %w(E_INVALID)
end

Instance Method Details

#countInteger

Returns the count attribute.

Returns:

  • (Integer)

    the count attribute



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

attribute :count, Integer, :required => true

#count?TrueClass, FalseClass

Returns truthiness of the count attribute.

Returns:

  • (TrueClass, FalseClass)

    truthiness of the count attribute



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

attribute :count, Integer, :required => true

#to_lineObject



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

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