Class: Klomp::Frames::ServerFrame
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(data) ⇒ ServerFrame
constructor
A new instance of ServerFrame.
Methods inherited from Frame
#[], #[]=, #body, #body=, #dump_headers, #headers, #name, #new_headers, #to_s
Constructor Details
#initialize(data) ⇒ ServerFrame
Returns a new instance of ServerFrame.
32 33 34 |
# File 'lib/klomp/frames.rb', line 32 def initialize(data) @headers, @body = parse(data) end |
Instance Method Details
#error? ⇒ Boolean
36 37 38 |
# File 'lib/klomp/frames.rb', line 36 def error? @error end |