Class: Swarker::PathParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/swarker/path_parameters.rb

Constant Summary collapse

IGNORED_PATH_PARAMS =
[:controller, :action]
IN_QUERY =
'query'.freeze
IN_FORM_DATA =
'formData'.freeze
IN_BODY =
'body'.freeze
IN_PATH =
'path'.freeze
REF =
'$ref'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path_schema) ⇒ PathParameters

Returns a new instance of PathParameters.



12
13
14
15
16
# File 'lib/swarker/path_parameters.rb', line 12

def initialize(path_schema)
  @path_schema = HashWithIndifferentAccess.new(path_schema)

  @parameters = parse_parameters
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



10
11
12
# File 'lib/swarker/path_parameters.rb', line 10

def parameters
  @parameters
end