Exception: Rmpd::MpdAckError

Inherits:
MpdError
  • Object
show all
Defined in:
lib/rmpd.rb

Instance Method Summary collapse

Constructor Details

#initialize(regex_match) ⇒ MpdAckError

Returns a new instance of MpdAckError.



21
22
23
# File 'lib/rmpd.rb', line 21

def initialize(regex_match)
  @error, @command_list_num, @current_command, @message = regex_match.values_at(1..-1)
end

Instance Method Details

#to_sObject



25
26
27
# File 'lib/rmpd.rb', line 25

def to_s
  "ACK [#{@error}@#{@command_list_num}] {#{@current_command}} #{@message}"
end