Class: Krakow::FrameType::Error

Inherits:
Krakow::FrameType show all
Defined in:
lib/krakow/frame_type/error.rb

Overview

Error from server

Constant Summary

Constants inherited from Krakow::FrameType

FRAME_TYPE_MAP, SIZE_BYTES

Instance Attribute Summary

Attributes included from Utils::Lazy::InstanceMethods

#arguments

Attributes collapse

Instance Method Summary collapse

Methods inherited from Krakow::FrameType

build, decode

Methods included from Utils::Lazy::ClassMethods

#attribute, #attributes, #set_attributes

Methods included from Utils::Lazy::InstanceMethods

#initialize, #inspect, #to_s

Methods included from Utils::Lazy

included

Methods included from Utils::Logging

level=, #log

Instance Method Details

#contentString

Returns content of error.

Returns:

  • (String)

    content of error



20
21
22
# File 'lib/krakow/frame_type/error.rb', line 20

def content
  error
end

#errorString

Returns the error attribute.

Returns:

  • (String)

    the error attribute



15
# File 'lib/krakow/frame_type/error.rb', line 15

attribute :error, String, :required => true

#error?TrueClass, FalseClass

Returns truthiness of the error attribute.

Returns:

  • (TrueClass, FalseClass)

    truthiness of the error attribute



15
# File 'lib/krakow/frame_type/error.rb', line 15

attribute :error, String, :required => true