Class: Swarker::PathParameters
- Inherits:
-
Object
- Object
- Swarker::PathParameters
- 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
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#initialize(path_schema) ⇒ PathParameters
constructor
A new instance of PathParameters.
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
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
10 11 12 |
# File 'lib/swarker/path_parameters.rb', line 10 def parameters @parameters end |