Class: Crm::DailyFocusSummaryComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/crm/daily_focus_summary_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject (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_countObject (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_countObject (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_countObject (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