Class: OpportunityBriefing::QuoteSnapshot
- Inherits:
-
Object
- Object
- OpportunityBriefing::QuoteSnapshot
- Includes:
- Service
- Defined in:
- app/services/opportunity_briefing/quote_snapshot.rb
Overview
Collects the bounded quote, focused line-item, and revision-change snapshots.
Defined Under Namespace
Classes: Result
Constant Summary collapse
- QUOTE_LIMIT =
OpportunityBriefing::QuoteCollectionSnapshot::LIMIT
- LINE_ITEM_LIMIT =
OpportunityBriefing::QuoteLineItemSnapshot::LIMIT
- REVISION_LINE_LIMIT =
OpportunityBriefing::QuoteLineSummary::LIMIT
- REVISION_CHANGE_LIMIT =
OpportunityBriefing::QuoteRevisionSnapshot::LIMIT
Instance Method Summary collapse
Methods included from Service
#attributes_used, #build_result, call, #logger
Methods included from Service::Initializer
Instance Method Details
#call ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'app/services/opportunity_briefing/quote_snapshot.rb', line 25 def call Result.new( selected_quote: collection_snapshot.selected_quote, quotes: collection_snapshot.items, focused_quote_line_items: line_item_snapshot.items, focused_quote_revision_changes: revision_snapshot.items, counts: counts ) end |