Class: Jumbotron::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/jumbotron/client.rb

Instance Method Summary collapse

Instance Method Details

#consensusObject



26
27
28
29
30
31
# File 'lib/jumbotron/client.rb', line 26

def consensus(**)
  Public::TranslateOutcome.call(
    Workflows::ReadConsensusWorkflow.call(**),
    payload_key: :consensus_lines
  )
end

#current_linesObject



33
34
35
36
37
38
# File 'lib/jumbotron/client.rb', line 33

def current_lines(**)
  Public::TranslateOutcome.call(
    Workflows::ReadCurrentLinesWorkflow.call(**),
    payload_key: :current_lines
  )
end

#gameObject



19
20
21
22
23
24
# File 'lib/jumbotron/client.rb', line 19

def game(**)
  Public::TranslateOutcome.call(
    Workflows::ReadGameWorkflow.call(**),
    payload_key: :game
  )
end

#scheduleObject



5
6
7
8
9
10
# File 'lib/jumbotron/client.rb', line 5

def schedule(**)
  Public::TranslateOutcome.call(
    Workflows::ReadScheduleWorkflow.call(**),
    payload_key: :schedule
  )
end

#schedule_groupsObject



12
13
14
15
16
17
# File 'lib/jumbotron/client.rb', line 12

def schedule_groups(**)
  Public::TranslateOutcome.call(
    Workflows::ReadScheduleGroupsWorkflow.call(**),
    payload_key: :schedule_groups
  )
end