Class: LesliView::Items::Task
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- LesliView::Items::Task
- Defined in:
- lib/lesli_view/items/task.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#scope_key ⇒ Object
readonly
Returns the value of attribute scope_key.
Instance Method Summary collapse
-
#initialize(task, scope) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(task, scope) ⇒ Task
Returns a new instance of Task.
38 39 40 41 |
# File 'lib/lesli_view/items/task.rb', line 38 def initialize(task, scope) @resource = task @scope_key = scope end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
36 37 38 |
# File 'lib/lesli_view/items/task.rb', line 36 def resource @resource end |
#scope_key ⇒ Object (readonly)
Returns the value of attribute scope_key.
36 37 38 |
# File 'lib/lesli_view/items/task.rb', line 36 def scope_key @scope_key end |