Class: Search::OpportunitySummaryPresenter

Inherits:
BasePresenter
  • Object
show all
Defined in:
app/presenters/search/opportunity_summary_presenter.rb

Instance Attribute Summary

Attributes inherited from BasePresenter

#current_account, #options, #url_helper

Instance Method Summary collapse

Methods inherited from BasePresenter

#can?, #capture, #concat, #content_tag, #fa_icon, #h, #initialize, #link_to, #number_to_currency, #present, presents, #r, #safe_present, #simple_format, #u

Constructor Details

This class inherits a constructor from BasePresenter

Instance Method Details

#valueObject



5
6
7
# File 'app/presenters/search/opportunity_summary_presenter.rb', line 5

def value
  h.number_to_currency results.to_a.sum{|i| i.value || 0.00 }
end