aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib/action_web_service/protocol/abstract.rb
blob: f628fc4aee5495aee4c3b7eab4b48b60a423dc2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module ActionWebService # :nodoc:
  module Protocol # :nodoc:
    class ProtocolError < ActionWebService::ActionWebServiceError
    end

    class Request
      attr :protocol
      attr :method_name
      attr :method_params
      attr :service_name

      def initialize(protocol, method_name, method_params, service_name)
        @protocol = protocol
        @method_name = method_name
        @method_params = method_params
        @service_name = service_name
      end
    end

    class Response
      attr :body
      attr :content_type

      def initialize(body, content_type)
        @body = body
        @content_type = content_type
      end
    end
  end
end