Sha256: 432f953296193e44ed2c8768343e69266cef4402a9e84491293b81ec3dc2cf87
Contents?: true
Size: 398 Bytes
Versions: 7
Compression:
Stored size: 398 Bytes
Contents
#encoding: UTF-8 module Termit class TextTranslator attr_reader :text def initialize options @options = options.merge(talk: false) @url = Termit::UrlConstructor.new(@options).url end def call response = Termit::DataFetcher.new(@url, @options[:text]).data @text = Termit::TextResponseHandler.new(response.body, @options[:synonyms]).call end end end
Version data entries
7 entries across 7 versions & 1 rubygems