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.
3 4 5 |
# File 'lib/openapi_validator/request.rb', line 3 def code @code end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type.
3 4 5 |
# File 'lib/openapi_validator/request.rb', line 3 def media_type @media_type end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/openapi_validator/request.rb', line 3 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/openapi_validator/request.rb', line 3 def path @path end |
Class Method Details
.call(**params) ⇒ Object
5 6 7 |
# File 'lib/openapi_validator/request.rb', line 5 def self.call(**params) new(**params) end |
Instance Method Details
#path_key ⇒ Object
9 10 11 |
# File 'lib/openapi_validator/request.rb', line 9 def path_key path[%r{(/[-_/\{\}\w]*)}] end |