Sha256: 7146eae4d87188062bbcff9cdd25653304061bbe807c62d0c88e35d4924bc6fa

Contents?: true

Size: 558 Bytes

Versions: 5

Compression:

Stored size: 558 Bytes

Contents

require "yatapp/version"
require "yatapp/configuration"
require "yatapp/yata_api_caller"
require 'yatapp/railtie' if defined?(Rails)
require "yatapp/inbox.rb"
require "yatapp/socket.rb"

module Yatapp
  extend Configuration

  class << self
    def get_translations
      api_caller.get_translations
    end

    def download_translations
      api_caller.download_translations
    end

    def start_websocket
      Phoenix::Socket.new unless File.basename($0) == 'rake'
    end

    def api_caller
      @api_caller ||= YataApiCaller.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yatapp-0.5.4 lib/yatapp.rb
yatapp-0.5.3 lib/yatapp.rb
yatapp-0.5.2 lib/yatapp.rb
yatapp-0.5.1 lib/yatapp.rb
yatapp-0.5.0 lib/yatapp.rb