Class: OpportunityBriefing::OpportunitySnapshot

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

Overview

Serializes the opportunity, customer/contact names, and assigned reps included
in a briefing's bounded CRM evidence.

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callObject



15
16
17
# File 'app/services/opportunity_briefing/opportunity_snapshot.rb', line 15

def call
  Result.new(data: opportunity_data)
end