Class: MastercardCoreSdk::Core::ServiceRequest
- Inherits:
-
Object
- Object
- MastercardCoreSdk::Core::ServiceRequest
- Defined in:
- lib/mastercard_core_sdk/core/service_request.rb
Overview
Set all required request parameters and pass it to the API client.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#path_params ⇒ Object
Returns the value of attribute path_params.
-
#query_params ⇒ Object
Returns the value of attribute query_params.
Instance Method Summary collapse
-
#initialize ⇒ ServiceRequest
constructor
A new instance of ServiceRequest.
Constructor Details
#initialize ⇒ ServiceRequest
Returns a new instance of ServiceRequest.
8 9 10 11 12 |
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 8 def initialize @headers = {} @path_params = {} @query_params = {} end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 6 def body @body end |
#content_type ⇒ Object
Returns the value of attribute content_type.
6 7 8 |
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 6 def content_type @content_type end |
#headers ⇒ Object
Returns the value of attribute headers.
6 7 8 |
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 6 def headers @headers end |
#path_params ⇒ Object
Returns the value of attribute path_params.
6 7 8 |
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 6 def path_params @path_params end |
#query_params ⇒ Object
Returns the value of attribute query_params.
6 7 8 |
# File 'lib/mastercard_core_sdk/core/service_request.rb', line 6 def query_params @query_params end |