Sha256: 52c3e4bf5a5cf88bb738c384657618abd273b11f14647267f23a72bf88f99805

Contents?: true

Size: 907 Bytes

Versions: 4

Compression:

Stored size: 907 Bytes

Contents

require 'faraday'
require 'faraday_middleware'
require 'forwardable'

begin
  require 'yajl'
  MultiJson.engine = :yajl
rescue LoadError
  require 'json'
  MultiJson.engine = :json_gem
end

module CloudConnect
  class << self
    attr_accessor :username
    attr_accessor :password
    attr_accessor :account
    attr_accessor :env

    def configure
      yield self
      true
    end

    require 'ext/object'
    require 'ext/module'
    require 'ext/hash'

    require 'faraday/cookie_auth'
    require 'faraday/raise_http_4xx'
    require 'faraday/raise_http_5xx'

    require 'cloud_connect/error'
    require 'cloud_connect/client/units'
    require 'cloud_connect/client/users'
    require 'cloud_connect/client/messages'
    require 'cloud_connect/client/trackings'
    require 'cloud_connect/client/channels'
    require 'cloud_connect/client/fields'
    require 'cloud_connect/client'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cloud_connect-2.0.1 lib/cloud_connect.rb
cloud_connect-2.0.0 lib/cloud_connect.rb
cloud_connect-0.0.2 lib/cloud_connect.rb
cloud_connect-0.0.1 lib/cloud_connect.rb