Class: OpportunityBriefing::ConversationSharing

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

Overview

Grants collaborator access to the assigned opportunity team, the person who
requested the briefing, and sales leadership.

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



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

def call
  validate!
  share_with_parties!
  DailyFocus::ConversationSharing.share_with_sales_leadership!(conversation, shared_by: shared_by)

  Result.new(conversation: conversation)
end