Class: OpenapiValidator::Request
- Inherits:
-
Object
- Object
- OpenapiValidator::Request
- Defined in:
- lib/openapi_validator/request.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/openapi_validator/request.rb', line 4 def code @code end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type.
4 5 6 |
# File 'lib/openapi_validator/request.rb', line 4 def media_type @media_type end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/openapi_validator/request.rb', line 4 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/openapi_validator/request.rb', line 4 def path @path end |
Class Method Details
.call(**params) ⇒ Object
6 7 8 |
# File 'lib/openapi_validator/request.rb', line 6 def self.call(**params) new(**params) end |
Instance Method Details
#path_key ⇒ Object
10 11 12 |
# File 'lib/openapi_validator/request.rb', line 10 def path_key path[%r{(/[-_/\{\}\w]*)}] end |