Sha256: af7ad26ca5d441e26abc4a2d57eeb851d7670d37a5d6180a3e4a9012870594df

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

# require "set"
# require "faraday"
# require "sawyer"
#
# require "nearmiss-ruby/response"
# require "nearmiss-ruby/error"
# require "nearmiss-ruby/raise_error"
# require "nearmiss-ruby/version"
require "tiny_tds"
require "toolhound-ruby/core_ext/string"
require "toolhound-ruby/configurable"
# require "nearmiss-ruby/response"
require "toolhound-ruby/client"
require "toolhound-ruby/default"
require "toolhound-ruby/base"

require "toolhound-ruby/project"
# require "nearmiss-ruby/util"

module Toolhound

  class << self

    include Toolhound::Configurable
    # include Nearmiss::Util

    # API client based on configured options {Configurable}
    #
    # @return [Toolhound::Client] API wrapper
    def client
      @client = Toolhound::Client.new(options) unless defined?(@client) && @client.same_options?(options)
      @client
    end

    # @private
    def respond_to_missing?(method_name, include_private=false)
      client.respond_to?(method_name, include_private)
    end

  private

    def method_missing(method_name, *args, &block)
      return super unless client.respond_to?(method_name)
      client.send(method_name, *args, &block)
    end


  end
end
Toolhound.setup

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toolhound-ruby-1.0.4 lib/toolhound-ruby.rb