class TweetingCake::CakeSlicer
Attributes
twitter_client[R]
Public Class Methods
new(twitter_client)
click to toggle source
# File lib/tweeting_cake/cake_slicer.rb, line 5 def initialize(twitter_client) @twitter_client = twitter_client end
Public Instance Methods
serve_a_slice_from(cake)
click to toggle source
# File lib/tweeting_cake/cake_slicer.rb, line 9 def serve_a_slice_from(cake) twitter_client.tweet(cake.tweetable_description) end