Class: Crm::OppFunnelWidgetComponent

Inherits:
ApplicationComponent show all
Includes:
DashboardQueryLink
Defined in:
app/components/crm/opp_funnel_widget_component.rb

Overview

ViewComponent: renders the opp funnel widget block.

Constant Summary collapse

OBSERVED_STATES =

Recognised observed states.

%w[qualify quoting follow_up promised promised_due won lost].freeze

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(employee: nil) ⇒ OppFunnelWidgetComponent

Returns a new instance of OppFunnelWidgetComponent.



10
11
12
13
# File 'app/components/crm/opp_funnel_widget_component.rb', line 10

def initialize(employee: nil)
  super()
  @employee = employee
end