Class: Net::RTSP::GetParameter

Inherits:
RTSPGenericRequest show all
Defined in:
lib/raop/rtsp.rb

Instance Method Summary collapse

Methods inherited from RTSPGenericRequest

#exec

Constructor Details

#initialize(session_id, parameters) ⇒ GetParameter

Returns a new instance of GetParameter.



128
129
130
131
132
133
# File 'lib/raop/rtsp.rb', line 128

def initialize(session_id, parameters)
  super('GET_PARAMETER')
  self['Content-Type'] = 'text/parameters'
  self['Session']   = session_id
  @body = parameters.join("\r\n") + "\r\n"
end