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, #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

Returns:

  • (Boolean)


36
37
38
# File 'lib/klomp/frames.rb', line 36

def error?
  @error
end