Class: Restool::OperationRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/restool/service/operation_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_request, method, path, params, headers) ⇒ OperationRequest

Returns a new instance of OperationRequest.



6
7
8
9
10
11
12
# File 'lib/restool/service/operation_request.rb', line 6

def initialize(http_request, method, path, params, headers)
  @http_request = http_request
  @method = method
  @path = path
  @params = params
  @headers = headers
end

Instance Attribute Details

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/restool/service/operation_request.rb', line 4

def headers
  @headers
end

#http_requestObject

Returns the value of attribute http_request.



4
5
6
# File 'lib/restool/service/operation_request.rb', line 4

def http_request
  @http_request
end

#methodObject

Returns the value of attribute method.



4
5
6
# File 'lib/restool/service/operation_request.rb', line 4

def method
  @method
end

#paramsObject

Returns the value of attribute params.



4
5
6
# File 'lib/restool/service/operation_request.rb', line 4

def params
  @params
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/restool/service/operation_request.rb', line 4

def path
  @path
end