Sha256: 4ad26f907617944543bb982704f3ee22e6443c8729b0121dd01b1ac7147945a8

Contents?: true

Size: 964 Bytes

Versions: 5

Compression:

Stored size: 964 Bytes

Contents

require 'faraday'
require 'faraday_middleware'
require 'oj' unless defined?(JRUBY_VERSION)
require 'faraday_middleware/multi_json'
require 'oauth2'
require 'yaml'
require 'hashie'

require 'telphin_api/version'
require 'telphin_api/error'
require 'telphin_api/configuration'
require 'telphin_api/authorization'
require 'telphin_api/utils'
require 'telphin_api/api'
require 'telphin_api/resolver'
require 'telphin_api/resolvable'
require 'telphin_api/client'
require 'telphin_api/namespace'
require 'telphin_api/method'
require 'telphin_api/result'
require 'telphin_api/logger'

# Main module.
module TelphinApi
  extend TelphinApi::Configuration
  extend TelphinApi::Authorization

  class << self
    # Creates a short alias `TPH` for `TelphinApi` module.
    def register_alias
      Object.const_set(:TPH, TelphinApi)
    end
    
    # Removes the `TPH` alias.
    def unregister_alias
      Object.send(:remove_const, :TPH) if defined?(TPH)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
telphin_api-1.0.4 lib/telphin_api.rb
telphin_api-1.0.3 lib/telphin_api.rb
telphin_api-1.0.2 lib/telphin_api.rb
telphin_api-1.0.1 lib/telphin_api.rb
telphin_api-1.0.0 lib/telphin_api.rb