Class: Modern::Descriptor::Parameters::Cookie
- Inherits:
-
Base
- Object
- Dry::Struct
- Struct
- Base
- Modern::Descriptor::Parameters::Cookie
show all
- Defined in:
- lib/modern/descriptor/parameters.rb
Instance Method Summary
collapse
Methods inherited from Base
#openapi3_in, #retrieve, #to_openapi3
#copy
Instance Method Details
#do_retrieve(request, _route_captures = nil) ⇒ Object
78
79
80
|
# File 'lib/modern/descriptor/parameters.rb', line 78
def do_retrieve(request, _route_captures = nil)
request.cookies[cookie_name]
end
|
#friendly_name ⇒ Object
74
75
76
|
# File 'lib/modern/descriptor/parameters.rb', line 74
def friendly_name
cookie_name
end
|