Class: SPDY::Protocol::Control::Ping
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- SPDY::Protocol::Control::Ping
- Defined in:
- lib/spdy/protocol.rb
Instance Method Summary collapse
Instance Method Details
#create(opts = {}) ⇒ Object
168 169 170 171 |
# File 'lib/spdy/protocol.rb', line 168 def create(opts = {}) self.ping_id = opts.fetch(:ping_id, 1) self end |
#parse(chunk) ⇒ Object
163 164 165 166 |
# File 'lib/spdy/protocol.rb', line 163 def parse(chunk) self.read(chunk) self end |