Class: ActionService::Protocol::ProtocolResponse

Inherits:
AbstractProtocolMessage show all
Defined in:
lib/action_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.



116
117
118
119
120
121
# File 'lib/action_service/protocol/abstract.rb', line 116

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.



114
115
116
# File 'lib/action_service/protocol/abstract.rb', line 114

def content_type
  @content_type
end

#protocolObject (readonly)

Returns the value of attribute protocol.



111
112
113
# File 'lib/action_service/protocol/abstract.rb', line 111

def protocol
  @protocol
end

#raw_bodyObject (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