Class: Arf::Wire::PingFrame

Inherits:
BaseFrame show all
Defined in:
lib/arf/wire/frames/ping_frame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseFrame

#decode_flags, #decode_uint16, #decode_uint32, define_flag, #encode_flags, #encode_uint16, #encode_uint32, flags, #flags, frame_by_kind, frame_kind, #frame_kind, #initialize, #inspect_flags, register_frame, #to_frame, #value_size, value_size, wants_stream_id!, #wants_stream_id?, wants_stream_id?

Constructor Details

This class inherits a constructor from Arf::Wire::BaseFrame

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



9
10
11
# File 'lib/arf/wire/frames/ping_frame.rb', line 9

def payload
  @payload
end

Instance Method Details

#encode_payloadObject



15
# File 'lib/arf/wire/frames/ping_frame.rb', line 15

def encode_payload = @payload

#from_frame(fr) ⇒ Object



11
12
13
# File 'lib/arf/wire/frames/ping_frame.rb', line 11

def from_frame(fr)
  @payload = fr.payload
end