Class: MPD::Protocol::Ok

Inherits:
Response show all
Defined in:
lib/mpd/protocol/response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#command

Instance Method Summary collapse

Methods inherited from Response

#each, #empty?, parse, read, #to_a, #to_hash

Constructor Details

#initialize(command, data, message) ⇒ Ok

Returns a new instance of Ok.



122
123
124
125
126
# File 'lib/mpd/protocol/response.rb', line 122

def initialize (command, data, message)
	super(command, data)

	@message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



120
121
122
# File 'lib/mpd/protocol/response.rb', line 120

def message
  @message
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


128
# File 'lib/mpd/protocol/response.rb', line 128

def success?; true; end