Class: Klomp::Frames::ServerFrame

Inherits:
Frame
  • Object
show all
Defined in:
lib/klomp/frames.rb

Direct Known Subclasses

Connected, Message

Instance Method Summary collapse

Methods inherited from Frame

#[], #[]=, #body, #body=, #dump_headers, #headers, #name, #new_headers, #stringify_headers, #to_s

Constructor Details

#initialize(data) ⇒ ServerFrame

Returns a new instance of ServerFrame.



38
39
40
# File 'lib/klomp/frames.rb', line 38

def initialize(data)
  @headers, @body = parse(data)
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/klomp/frames.rb', line 42

def error?
  @error
end