Module: Kibosh::Session::Stream::Response

Defined in:
lib/kibosh/session/stream.rb

Class Method Summary collapse

Class Method Details

.extended(response) ⇒ Object



5
6
7
8
9
# File 'lib/kibosh/session/stream.rb', line 5

def self.extended response
  response.body["from"] = response.stream.from if response.stream.from && !response.stream.from_sent
  response.body["secure"] = response.stream.secure if response.stream.secure && !response.stream.secure_sent
  response.body["stream"] = response.stream.id
end