Class: Swgr2rb::EndpointClassConfig
- Inherits:
-
Object
- Object
- Swgr2rb::EndpointClassConfig
- Defined in:
- lib/endpoint_class_config_generator/endpoint_class_config.rb
Overview
EndpointClassConfig is a class that contains all necessary parameters for endpoint model generation as its attributes.
Defined Under Namespace
Classes: ExpectedResponse, RequestParams
Instance Attribute Summary collapse
-
#endpoint_path ⇒ Object
readonly
Returns the value of attribute endpoint_path.
-
#expected_response ⇒ Object
readonly
Returns the value of attribute expected_response.
-
#operation_id ⇒ Object
Returns the value of attribute operation_id.
-
#request_params ⇒ Object
readonly
Returns the value of attribute request_params.
-
#request_type ⇒ Object
readonly
Returns the value of attribute request_type.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(endpoint_path, request_type, expected_response, request_params, operation_id, version) ⇒ EndpointClassConfig
constructor
A new instance of EndpointClassConfig.
Constructor Details
#initialize(endpoint_path, request_type, expected_response, request_params, operation_id, version) ⇒ EndpointClassConfig
Returns a new instance of EndpointClassConfig.
12 13 14 15 16 17 18 19 20 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 12 def initialize(endpoint_path, request_type, expected_response, request_params, operation_id, version) @endpoint_path = endpoint_path @request_type = request_type @expected_response = expected_response @request_params = request_params @operation_id = operation_id @version = version end |
Instance Attribute Details
#endpoint_path ⇒ Object (readonly)
Returns the value of attribute endpoint_path.
8 9 10 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 8 def endpoint_path @endpoint_path end |
#expected_response ⇒ Object (readonly)
Returns the value of attribute expected_response.
8 9 10 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 8 def expected_response @expected_response end |
#operation_id ⇒ Object
Returns the value of attribute operation_id.
10 11 12 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 10 def operation_id @operation_id end |
#request_params ⇒ Object (readonly)
Returns the value of attribute request_params.
8 9 10 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 8 def request_params @request_params end |
#request_type ⇒ Object (readonly)
Returns the value of attribute request_type.
8 9 10 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 8 def request_type @request_type end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
8 9 10 |
# File 'lib/endpoint_class_config_generator/endpoint_class_config.rb', line 8 def version @version end |