Class: MastercardCoreSdk::Core::ServiceRequest
- Inherits:
-
Object
- Object
- MastercardCoreSdk::Core::ServiceRequest
- Defined in:
- lib/mastercard_core_sdk/core/service_request.rb
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.
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
#body ⇒ Object
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_type ⇒ Object
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 |
#headers ⇒ Object
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_params ⇒ Object
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_params ⇒ Object
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 |