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



37
38
39
# File 'lib/utopia/responder.rb', line 37

def context
  @context
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



37
38
39
# File 'lib/utopia/responder.rb', line 37

def request
  @request
end

#responderObject

Returns the value of attribute responder

Returns:

  • (Object)

    the current value of responder



37
38
39
# File 'lib/utopia/responder.rb', line 37

def responder
  @responder
end

Instance Method Details

#with(object, **options) ⇒ Object

TODO:

Refactor ‘object` -> `*arguments`…



39
40
41
# File 'lib/utopia/responder.rb', line 39

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