Class: OpportunityBriefing::EngagementSnapshot

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

Overview

Collects the bounded participant, activity, communication, call, and order
snapshots used by an opportunity briefing.

Defined Under Namespace

Classes: Result

Constant Summary collapse

ACTIVITY_LIMIT =
OpportunityBriefing::ActivitySnapshot::LIMIT
COMMUNICATION_LIMIT =
OpportunityBriefing::CommunicationSnapshot::LIMIT
ORDER_LIMIT =
OpportunityBriefing::OrderSnapshot::LIMIT
CALL_LIMIT =
OpportunityBriefing::CallSnapshot::LIMIT

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callObject



27
28
29
30
31
32
33
34
35
36
# File 'app/services/opportunity_briefing/engagement_snapshot.rb', line 27

def call
  Result.new(
    participants: participant_snapshot.items,
    activities: activity_snapshot.items,
    communications: communication_snapshot.items,
    call_records: call_snapshot.items,
    orders: order_snapshot.items,
    counts: counts
  )
end