Class: Utopia::Controller::Responder::Responds

Inherits:
Struct
  • Object
show all
Defined in:
lib/utopia/controller/responder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



51
52
53
# File 'lib/utopia/controller/responder.rb', line 51

def context
  @context
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



51
52
53
# File 'lib/utopia/controller/responder.rb', line 51

def request
  @request
end

#responderObject

Returns the value of attribute responder

Returns:

  • (Object)

    the current value of responder



51
52
53
# File 'lib/utopia/controller/responder.rb', line 51

def responder
  @responder
end

Instance Method Details

#with(object, **options) ⇒ Object



53
54
55
# File 'lib/utopia/controller/responder.rb', line 53

def with(object, **options)
  responder.call(context, request, object, **options)
end