Class: ActionWebService::Protocol::ProtocolResponse

Inherits:
AbstractProtocolMessage show all
Defined in:
lib/action_web_service/protocol/abstract.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from AbstractProtocolMessage

#options, #return_signature, #signature, #type

Instance Method Summary collapse

Methods inherited from AbstractProtocolMessage

#check_compatibility, #check_parameter_types, #checked?

Constructor Details

#initialize(protocol, raw_body, content_type, options = {}) ⇒ ProtocolResponse

Returns a new instance of ProtocolResponse.



120
121
122
123
124
125
# File 'lib/action_web_service/protocol/abstract.rb', line 120

def initialize(protocol, raw_body, content_type, options={})
  super(options)
  @protocol = protocol
  @raw_body = raw_body
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



118
119
120
# File 'lib/action_web_service/protocol/abstract.rb', line 118

def content_type
  @content_type
end

#protocolObject (readonly)

Returns the value of attribute protocol.



115
116
117
# File 'lib/action_web_service/protocol/abstract.rb', line 115

def protocol
  @protocol
end

#raw_bodyObject (readonly)

Returns the value of attribute raw_body.



116
117
118
# File 'lib/action_web_service/protocol/abstract.rb', line 116

def raw_body
  @raw_body
end