Class: Swgr2rb::EndpointClassConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_pathObject (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_responseObject (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_idObject

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_paramsObject (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_typeObject (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

#versionObject (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