module TranslatorText::Types

Includes all the types for the exchanges with the API

Constants

Symbol

Public Class Methods

Sentence(item) click to toggle source
# File lib/translator_text/types.rb, line 13
def Sentence(item)
  if item.is_a?(Types::Sentence)
    item
  elsif item.is_a?(String)
    Types::Sentence.new(Text: item)
  end
end