Class: Krakow::FrameType::Response

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

Overview

Response 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 response.

Returns:

  • (String)

    content of response



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

def content
  response
end

#responseString

Returns the response attribute.

Returns:

  • (String)

    the response attribute



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

attribute :response, String, :required => true

#response?TrueClass, FalseClass

Returns truthiness of the response attribute.

Returns:

  • (TrueClass, FalseClass)

    truthiness of the response attribute



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

attribute :response, String, :required => true