Class: Utopia::Responder::Responds

Inherits:
Struct
  • Object
show all
Defined in:
lib/utopia/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



20
21
22
# File 'lib/utopia/responder.rb', line 20

def context
  @context
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



20
21
22
# File 'lib/utopia/responder.rb', line 20

def request
  @request
end

#responderObject

Returns the value of attribute responder

Returns:

  • (Object)

    the current value of responder



20
21
22
# File 'lib/utopia/responder.rb', line 20

def responder
  @responder
end

Instance Method Details

#with(object, **options) ⇒ Object



22
23
24
# File 'lib/utopia/responder.rb', line 22

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