Class: OpportunityBriefing::QuoteLineSummary

Inherits:
Object
  • Object
show all
Includes:
SnapshotFormatting, Service
Defined in:
app/services/opportunity_briefing/quote_line_summary.rb

Overview

Aggregates one quote's product lines by item/SKU for revision comparison.

Defined Under Namespace

Classes: Result

Constant Summary collapse

LIMIT =
100

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callObject



16
17
18
19
20
21
# File 'app/services/opportunity_briefing/quote_line_summary.rb', line 16

def call
  Result.new(
    lines: summarized_lines,
    count: count_data(records.size, scope.count, LIMIT)
  )
end