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