class RandomYoutubeComment::WordnikClient
Public Class Methods
client()
click to toggle source
# File lib/random_youtube_comment/wordnik_client.rb, line 10 def client Wordnik.configure do |config| config.api_key = RandomYoutubeComment.configuration.wordnik_api_key config.logger = Logger.new('/dev/null') end unless @client @client ||= Wordnik.words end
random_word()
click to toggle source
# File lib/random_youtube_comment/wordnik_client.rb, line 6 def random_word client.get_random_word(:hasDictionaryDef => 'true')["word"] end