Class: Krakow::Command::Rdy
- Inherits:
-
Krakow::Command
- Object
- Krakow::Command
- Krakow::Command::Rdy
- Defined in:
- lib/krakow/command/rdy.rb
Overview
Update RDY state
Instance Attribute Summary
Attributes inherited from Krakow::Command
Attributes collapse
-
#count ⇒ Integer
The count attribute.
-
#count? ⇒ TrueClass, FalseClass
Truthiness of the count 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/rdy.rb', line 24 def error %w(E_INVALID) end |
Instance Method Details
#count ⇒ Integer
Returns 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.
15 |
# File 'lib/krakow/command/rdy.rb', line 15 attribute :count, Integer, :required => true |
#to_line ⇒ Object
19 20 21 |
# File 'lib/krakow/command/rdy.rb', line 19 def to_line "#{name} #{count}\n" end |