Class: ActionService::Protocol::ProtocolRequest
- Inherits:
-
AbstractProtocolMessage
- Object
- AbstractProtocolMessage
- ActionService::Protocol::ProtocolRequest
- 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.
-
#public_method_name ⇒ Object
Returns the value of attribute public_method_name.
-
#raw_body ⇒ Object
readonly
Returns the value of attribute raw_body.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
Attributes inherited from AbstractProtocolMessage
#options, #return_signature, #signature, #type
Instance Method Summary collapse
-
#initialize(protocol, raw_body, service_name, public_method_name, content_type, options = {}) ⇒ ProtocolRequest
constructor
A new instance of ProtocolRequest.
- #marshal(return_value) ⇒ Object
- #unmarshal ⇒ Object
Methods inherited from AbstractProtocolMessage
#check_compatibility, #check_parameter_types, #checked?
Constructor Details
#initialize(protocol, raw_body, service_name, public_method_name, content_type, options = {}) ⇒ ProtocolRequest
Returns a new instance of ProtocolRequest.
92 93 94 95 96 97 98 99 |
# File 'lib/action_service/protocol/abstract.rb', line 92 def initialize(protocol, raw_body, service_name, public_method_name, content_type, ={}) super() @protocol = protocol @raw_body = raw_body @service_name = service_name @public_method_name = public_method_name @content_type = content_type end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
90 91 92 |
# File 'lib/action_service/protocol/abstract.rb', line 90 def content_type @content_type end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
85 86 87 |
# File 'lib/action_service/protocol/abstract.rb', line 85 def protocol @protocol end |
#public_method_name ⇒ Object
Returns the value of attribute public_method_name.
89 90 91 |
# File 'lib/action_service/protocol/abstract.rb', line 89 def public_method_name @public_method_name end |
#raw_body ⇒ Object (readonly)
Returns the value of attribute raw_body.
86 87 88 |
# File 'lib/action_service/protocol/abstract.rb', line 86 def raw_body @raw_body end |
#service_name ⇒ Object
Returns the value of attribute service_name.
88 89 90 |
# File 'lib/action_service/protocol/abstract.rb', line 88 def service_name @service_name end |
Instance Method Details
#marshal(return_value) ⇒ Object
105 106 107 |
# File 'lib/action_service/protocol/abstract.rb', line 105 def marshal(return_value) @protocol.marshal_response(self, return_value) end |
#unmarshal ⇒ Object
101 102 103 |
# File 'lib/action_service/protocol/abstract.rb', line 101 def unmarshal @protocol.unmarshal_request(self) end |