Class: Apipie::Generator::Swagger::MethodDescription::ParametersService

Inherits:
Object
  • Object
show all
Defined in:
lib/apipie/generator/swagger/method_description/parameters_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(method_description, path:, http_method:) ⇒ ParametersService

Returns a new instance of ParametersService.



5
6
7
8
9
# File 'lib/apipie/generator/swagger/method_description/parameters_service.rb', line 5

def initialize(method_description, path:, http_method:)
  @method_description = method_description
  @path = path
  @http_method = http_method
end

Instance Method Details

#callArray

Returns:

  • (Array)


12
13
14
# File 'lib/apipie/generator/swagger/method_description/parameters_service.rb', line 12

def call
  path_params_schema + body_params_schema + header_params_schema
end