Class: Jumbotron::Services::Public::DeriveConsensusForGames
- Inherits:
-
CommandTower::Services::ApplicationService
- Object
- CommandTower::Services::ApplicationService
- Jumbotron::Services::Public::DeriveConsensusForGames
- Defined in:
- app/services/jumbotron/services/public/derive_consensus_for_games.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/services/jumbotron/services/public/derive_consensus_for_games.rb', line 9 def call derived = Canonical::DeriveConsensusForGames.call(current_lines: current_lines) unless derived.success? context.fail!(application_error: derived.errors.first) return end context.consensus_lines = Array(derived.data[:consensus_lines]) end |