Class: OpenapiValidator::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_validator/request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/openapi_validator/request.rb', line 3

def code
  @code
end

#media_typeObject (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

#methodObject (readonly)

Returns the value of attribute method.



3
4
5
# File 'lib/openapi_validator/request.rb', line 3

def method
  @method
end

#pathObject (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_keyObject



9
10
11
# File 'lib/openapi_validator/request.rb', line 9

def path_key
  path[%r{(/[-_/\{\}\w]*)}]
end