Class: Krakow::Command::Rdy

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

Overview

Update RDY state

Instance Attribute Summary (collapse)

Attributes (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



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

def error
  %w(E_INVALID)
end

Instance Method Details

- (Integer) count

Returns the count attribute

Returns:

  • (Integer)

    the count attribute



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

attribute :count, Integer, :required => true

- (TrueClass, FalseClass) count?

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

- (Object) to_line



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

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