class OpenapiValidator::Request
Attributes
code[R]
media_type[R]
method[R]
path[R]
Public Class Methods
call(**params)
click to toggle source
# File lib/openapi_validator/request.rb, line 5 def self.call(**params) new(**params) end
new(path:, method:, code:, media_type: "application/json")
click to toggle source
# File lib/openapi_validator/request.rb, line 15 def initialize(path:, method:, code:, media_type: "application/json") @path = path @method = method.to_s @code = code.to_s @media_type = media_type.to_s end
Public Instance Methods
path_key()
click to toggle source
# File lib/openapi_validator/request.rb, line 9 def path_key path[%r{(/[-_/\{\}\w]*)}] end