Class: Modern::Descriptor::Parameters::Cookie

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

Instance Method Summary collapse

Methods inherited from Base

#openapi3_in, #retrieve, #to_openapi3

Methods included from Struct::Copy

#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_nameObject



74
75
76
# File 'lib/modern/descriptor/parameters.rb', line 74

def friendly_name
  cookie_name
end