Sha256: 8e35ee9e5627434b2f5b7727dd882367d90fca1409476c30a4563103e68c8816

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

require "apitool/client/version"

require "rails"
require "rest-client"
require "apitool/client/logger"

require "apitool/client/apitool_client"
require "apitool/client/role"
require "apitool/client/api_key"
require "apitool/client/vpn"

module Apitool
  module Client

    def self.logger
      @logger || Apitool::Client::Logger
    end

    def self.logger=(logger)
      @logger = logger
    end

    class Railtie < ::Rails::Railtie
      initializer :apitool_client do |app|
        Apitool::Client.logger = Rails.logger
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apitool-client-0.0.3 lib/apitool/client.rb