Class: CommandTower::Messaging::Contract::Mappers::DestinationPlanMapper

Inherits:
Object
  • Object
show all
Defined in:
app/services/command_tower/messaging/contract/mappers/destination_plan_mapper.rb

Class Method Summary collapse

Class Method Details

.to_result(plan) ⇒ Object



8
9
10
11
12
# File 'app/services/command_tower/messaging/contract/mappers/destination_plan_mapper.rb', line 8

def self.to_result(plan)
  return nil if plan.nil?

  Results::DestinationPlanResult.new(id: plan.id).freeze
end