Class: TweetingCake::CakeSupervisor

Inherits:
Object
  • Object
show all
Defined in:
lib/tweeting_cake/cake_supervisor.rb

Instance Method Summary collapse

Instance Method Details

#supervise_cake_cuttingObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/tweeting_cake/cake_supervisor.rb', line 8

def supervise_cake_cutting
  twitter_handle = ask_for_twitter_handle
  tweeting_cake = TweetingCake.new(
    name_on_cake: twitter_handle
    )
  cake_slicer = CakeSlicer.new(TwitterClient.new)

  give_cake_slicing_instructions
  wait_for_cake_to_get_sliced

  cake_slicer.serve_a_slice_from(tweeting_cake)
end