Module: Warden::Protocol::BaseRequest
- Defined in:
- lib/warden/protocol/base.rb
Instance Method Summary collapse
Instance Method Details
#create_response(attributes = {}) ⇒ Object
147 148 149 150 151 152 |
# File 'lib/warden/protocol/base.rb', line 147 def create_response(attributes = {}) klass_name = self.class.name.gsub(/Request$/, "Response") klass_name = klass_name.split("::").last klass = Protocol.const_get(klass_name) klass.new(attributes) end |