class Composer

Public Class Methods

new(config, twitter_client, tweet_finder, emoji_finder) click to toggle source
# File lib/composers/composer.rb, line 2
def initialize(config, twitter_client, tweet_finder, emoji_finder)
  @max_length = config.twitter_config.tweet_max_length
  @blacklist = config.blacklist
  @stop_words = config.stop_words
  @default_hashtag = config.default_hashtag
  @twitter_client = twitter_client
  @tweet_finder = tweet_finder
  @emoji_finder = emoji_finder
end

Public Instance Methods

compose_image_query(query) click to toggle source
# File lib/composers/composer.rb, line 16
def compose_image_query(query)
  raise NoMethodError 'implement compose_image_query(query)'
end
compose_tweet() click to toggle source
# File lib/composers/composer.rb, line 12
def compose_tweet
  raise NoMethodError 'implement compose_tweet'
end