Class: Crm::DailyFocusSummaryComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Crm::DailyFocusSummaryComponent
- Defined in:
- app/components/crm/daily_focus_summary_component.rb
Instance Attribute Summary collapse
-
#approved_count ⇒ Object
readonly
Returns the value of attribute approved_count.
-
#missing_count ⇒ Object
readonly
Returns the value of attribute missing_count.
-
#pending_count ⇒ Object
readonly
Returns the value of attribute pending_count.
-
#processing_count ⇒ Object
readonly
Returns the value of attribute processing_count.
Instance Method Summary collapse
-
#initialize(processing_count: 0, pending_count:, approved_count:, missing_count:) ⇒ DailyFocusSummaryComponent
constructor
A new instance of DailyFocusSummaryComponent.
Methods inherited from ApplicationComponent
#cms_link, #fetch_or_fallback, #image_asset_tag, #image_tag, #number_to_currency, #number_with_delimiter, #post_path, #post_url, #strip_tags
Constructor Details
#initialize(processing_count: 0, pending_count:, approved_count:, missing_count:) ⇒ DailyFocusSummaryComponent
Returns a new instance of DailyFocusSummaryComponent.
4 5 6 7 8 9 10 |
# File 'app/components/crm/daily_focus_summary_component.rb', line 4 def initialize(processing_count: 0, pending_count:, approved_count:, missing_count:) super() @processing_count = processing_count @pending_count = pending_count @approved_count = approved_count @missing_count = missing_count end |
Instance Attribute Details
#approved_count ⇒ Object (readonly)
Returns the value of attribute approved_count.
12 13 14 |
# File 'app/components/crm/daily_focus_summary_component.rb', line 12 def approved_count @approved_count end |
#missing_count ⇒ Object (readonly)
Returns the value of attribute missing_count.
12 13 14 |
# File 'app/components/crm/daily_focus_summary_component.rb', line 12 def missing_count @missing_count end |
#pending_count ⇒ Object (readonly)
Returns the value of attribute pending_count.
12 13 14 |
# File 'app/components/crm/daily_focus_summary_component.rb', line 12 def pending_count @pending_count end |
#processing_count ⇒ Object (readonly)
Returns the value of attribute processing_count.
12 13 14 |
# File 'app/components/crm/daily_focus_summary_component.rb', line 12 def processing_count @processing_count end |