Module: Kibosh::Session::NewSessionResponse
- Defined in:
- lib/kibosh/session.rb
Class Method Summary collapse
Class Method Details
.extended(response) ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/kibosh/session.rb', line 89 def self.extended response session = response.session body = response.body [:sid, :wait, :ver, :polling, :inactivity, :requests, :hold, :accept, :maxpause, :charsets ].each do |symbol| value = session.send symbol body[symbol.to_s] = value.to_s if !value.nil? end end |