Class: Modern::Descriptor::Parameters::Path

Inherits:
Base
  • Object
show all
Defined in:
lib/modern/descriptor/parameters.rb

Instance Method Summary collapse

Methods inherited from Base

#friendly_name, #openapi3_in, #retrieve, #to_openapi3

Methods included from Struct::Copy

#copy

Instance Method Details

#do_retrieve(_request, route_captures) ⇒ Object



64
65
66
# File 'lib/modern/descriptor/parameters.rb', line 64

def do_retrieve(_request, route_captures)
  route_captures[name]
end

#requiredObject



60
61
62
# File 'lib/modern/descriptor/parameters.rb', line 60

def required
  true
end