Class: Karafka::Web::Ui::Controllers::Responses::Render
- Inherits:
-
Object
- Object
- Karafka::Web::Ui::Controllers::Responses::Render
- Defined in:
- lib/karafka/web/ui/controllers/responses/render.rb
Overview
Response render data object. It is used to transfer attributes assigned in controllers into views It acts as a simplification / transport layer for assigned attributes
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, attributes) ⇒ Render
constructor
A new instance of Render.
Constructor Details
#initialize(path, attributes) ⇒ Render
Returns a new instance of Render.
17 18 19 20 |
# File 'lib/karafka/web/ui/controllers/responses/render.rb', line 17 def initialize(path, attributes) @path = path @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
13 14 15 |
# File 'lib/karafka/web/ui/controllers/responses/render.rb', line 13 def attributes @attributes end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
13 14 15 |
# File 'lib/karafka/web/ui/controllers/responses/render.rb', line 13 def path @path end |