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.

Returns:

  • (Array<String>)
%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.

Parameters:

  • employee (Employee, nil) (defaults to: nil)

    the sales rep to scope the funnel to, or nil for all reps



12
13
14
15
# File 'app/components/crm/opp_funnel_widget_component.rb', line 12

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