Class: ActionService::Protocol::ProtocolResponse
- Inherits:
-
AbstractProtocolMessage
- Object
- AbstractProtocolMessage
- ActionService::Protocol::ProtocolResponse
- Defined in:
- lib/action_service/protocol/abstract.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#raw_body ⇒ Object
readonly
Returns the value of attribute raw_body.
Attributes inherited from AbstractProtocolMessage
#options, #return_signature, #signature, #type
Instance Method Summary collapse
-
#initialize(protocol, raw_body, content_type, options = {}) ⇒ ProtocolResponse
constructor
A new instance of ProtocolResponse.
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.
116 117 118 119 120 121 |
# File 'lib/action_service/protocol/abstract.rb', line 116 def initialize(protocol, raw_body, content_type, ={}) super() @protocol = protocol @raw_body = raw_body @content_type = content_type end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
114 115 116 |
# File 'lib/action_service/protocol/abstract.rb', line 114 def content_type @content_type end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
111 112 113 |
# File 'lib/action_service/protocol/abstract.rb', line 111 def protocol @protocol end |
#raw_body ⇒ Object (readonly)
Returns the value of attribute raw_body.
112 113 114 |
# File 'lib/action_service/protocol/abstract.rb', line 112 def raw_body @raw_body end |