Sha256: 3c4d10cf9bde4cee3d41180c566709dd52f855511e9036cfd4c062afe1a2a2bc

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

require 'zeitwerk'
require 'faraday'

loader = Zeitwerk::Loader.for_gem
loader.setup

# This is a Ruby client that enables you to easily perform translations using FunTranslations API:
#
#   client = FunTranslations.client
#   translation_yoda = client.translate :yoda, "Hello, my padawan"
#   translation_yoda.translated_text
module FunTranslations
  class << self
    # Initializes a new Client object
    #
    # @return [FunTranslations::Client]
    # @param token [String]
    def client(token = nil)
      FunTranslations::Client.new token
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fun_translations-0.0.1.rc1 lib/fun_translations.rb