Class: MastercardCoreSdk::Core::ServiceRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/mastercard_core_sdk/core/service_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServiceRequest

Returns a new instance of ServiceRequest.



7
8
9
10
11
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 7

def initialize
  @headers = {}
  @path_params = {}
  @query_params = {}
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 5

def body
  @body
end

#content_typeObject

Returns the value of attribute content_type.



5
6
7
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 5

def content_type
  @content_type
end

#headersObject

Returns the value of attribute headers.



5
6
7
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 5

def headers
  @headers
end

#path_paramsObject

Returns the value of attribute path_params.



5
6
7
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 5

def path_params
  @path_params
end

#query_paramsObject

Returns the value of attribute query_params.



5
6
7
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 5

def query_params
  @query_params
end