Sha256: 7877460f5c754d70b173d2cbb3bffde1021e7890c090ac4fd3075b011fcd2981

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

require 'zeitwerk'
require 'faraday'
require 'json'

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 lib/fun_translations.rb