Class: Moonshot::App::JobsToBeDone
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Moonshot::App::JobsToBeDone
- Defined in:
- app/components/moonshot/app/jobs_to_be_done.rb
Defined Under Namespace
Classes: ItemComponent
Instance Attribute Summary collapse
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title:) ⇒ JobsToBeDone
constructor
A new instance of JobsToBeDone.
- #render? ⇒ Boolean
Constructor Details
#initialize(title:) ⇒ JobsToBeDone
Returns a new instance of JobsToBeDone.
8 9 10 |
# File 'app/components/moonshot/app/jobs_to_be_done.rb', line 8 def initialize title: @title = title end |
Instance Attribute Details
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'app/components/moonshot/app/jobs_to_be_done.rb', line 6 def title @title end |
Instance Method Details
#render? ⇒ Boolean
12 13 14 |
# File 'app/components/moonshot/app/jobs_to_be_done.rb', line 12 def render? !items.all?(&:completed?) end |