Class: Utopia::Responder::Responds
- Inherits:
-
Struct
- Object
- Struct
- Utopia::Responder::Responds
- Defined in:
- lib/utopia/responder.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#request ⇒ Object
Returns the value of attribute request.
-
#responder ⇒ Object
Returns the value of attribute responder.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
20 21 22 |
# File 'lib/utopia/responder.rb', line 20 def context @context end |
#request ⇒ Object
Returns the value of attribute request
20 21 22 |
# File 'lib/utopia/responder.rb', line 20 def request @request end |
#responder ⇒ Object
Returns the value of attribute responder
20 21 22 |
# File 'lib/utopia/responder.rb', line 20 def responder @responder end |
Instance Method Details
#with(object, **options) ⇒ Object
TODO:
Refactor ‘object` -> `*arguments`…
22 23 24 |
# File 'lib/utopia/responder.rb', line 22 def with(object, **) responder.call(context, request, object, **) end |